Jump to content

Recommended Posts

roo1lif.jpg

 

Download:

MIL_Craters - Dropbox/Armaholic

 

Description:

MIL_Craters will spawn a crater on the position of an explosion. This will happen for ANY explosion, and was developed for use in a runway denial scenario where aircraft have been tasked with bombing a runway. Feel free to edit the types of craters that are spawned to suit your needs (variables _a, _b and _c). Just be sure to also edit the forEach loop at line 37 if required.

 

Features:

- Spawns small and large craters (90% - 10% chance respectively).
- All spawned objects saved to MIL_Craters array for simple deletion if needed.
- Function uses inArea to limit craters to a user-defined area.

 

To use:

- Copy the file MIL_Craters.sqf to your mission folder.
- Run the script server-side from initServer.sqf using:
 

- nul = [_center,_a,_b,_angle,_isRectangle,_c] execVM "MIL_Craters.sqf";

- _center - array or object - center of the area to be covered
- _a - number - x radius
- _b - number - y radius
- _angle - number - rotation angle
- _isRectacle - boolean - true for rectangle, false for circle/oval
- _c - number - z axis (height)

Example:

nul = [[6362.9,8373.8,0],580,265,0,true,0] execVM "MIL_Craters.sqf";

 

 

If anyone finds any problems please let me know.

 

Thank you.

  • Like 5
  • Thanks 4

Share this post


Link to post
Share on other sites

ive tried this and cant seem to get it to work

no craters are spawning when used with mortars c4 and any other explosive

im using your code

nul = [[6362.9,8373.8,0],580,265,0,false,0] execVM "MIL_Craters.sqf";

not sure what is going on would like to add to our escape servers

Share this post


Link to post
Share on other sites

@PatPgtips You need to define your own area to be covered. That is just an example position and x/y radius that I used. 

Share this post


Link to post
Share on other sites

i did try that still didnt work

 

does it only work in a static area if i define an area on a map location

 

as we have mortars around us and the terrain always changes on the map so its very random were we are when we get mortars so i take it we cant use this script

 

looks like it only works at a static possition or am i wrong

Share this post


Link to post
Share on other sites

Sorry @PatPgtips but I'm not sure what else to say. You need to define your own area where you want the effects to happen. Have a look the Features section of the OP and the inArea link, and see how that ties into the variables that need to be parsed into the script. Unless your version of Escape is preventing the code from running (I've never had trouble with custom code on Escape missions though) it will work.

Share this post


Link to post
Share on other sites

thanks for the video that will help me a lot better 

 

i can now see what has to be done 

 

thanks again

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×