Printable Version of Topic

Click here to view this topic in its original format

Armed Assault Info Forums _ Mission Editing & Scripting _ Script Trouble

Posted by: S.T.A.L.K.E.R. Dec 8 2012, 22:48

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 wink.gif
]
// Select random explosion type;
_shell = _shellarray call BIS_fnc_selectrandom;

// Spawn the selection
_explosion = _shell createvehicle position IED;

Posted by: D@V£ Dec 9 2012, 00:26

Try using http://community.bistudio.com/wiki/camCreate instead of createvehicle.

Posted by: S.T.A.L.K.E.R. Dec 9 2012, 18:46

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)