Hey guys
Basically in one of my missions I tried following one of the tutorials on YouTube about IEDs and random spawning, but for some reason it doesn't work. Can anyone help?
Here is the script:
// An Array of ammunition from which to choose
_shellArray =
[
"B_30mm_HE"
"ARTY_Sh_81_HE"
"ARTY_Sh_120_HE"
// "Bo_GBU12_LGB" // Massive Explosion - Use at your own risk
]
// Select random explosion type;
_shell = _shellarray call BIS_fnc_selectrandom;
// Spawn the selection
_explosion = _shell createvehicle position IED;
Try using http://community.bistudio.com/wiki/camCreate instead of createvehicle.
I made a mistake...
I misread the file name which was 'IED.sqf.txt' so i've corrected that. The IED itself is spawning in the selected random locations but they aren't detonating when any BLUFOR pass them? I've now tried both 'createVehicle' and 'camcreate' but still no detonation
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)