Jump to content
Sign in to follow this  
BullyBoii

IED script not working

Recommended Posts

This is the code im working on, almost a carbon copy of the script from the tutorial editor by BIS


_shellArray = 
[
"Bo_GBU12_LGB",
"B_30mm_HE",
"ARTY_Sh_81_HE",
"ARTY_Sh_120_HE"		
];

//calls the shell array and selcts a random shell		
_shell = _shellArray call BIS_fnc_selectRandom;

//hints the shell used (for editor use only)
hint format ["A %1 has been selected for the IED", _shell];//this returns "any"
sleep 2;

//creates an explosion at IED_1
_explosion = _shell createVehicle position IED_1;


The explosion never happens and i cant seem to figure out, "why not?"

Share this post


Link to post
Share on other sites

Did you put down the Functions module on the map? Without it the BIS_fnc_selectRandom won't work, which explains that 'any' result instead of the shell name.

Share this post


Link to post
Share on other sites

omfg AHHHHHH!!!!!!

thats what did it, i was wondering why it wasnt working, goddam it.

Thanks mate, schoolboy error AHH!!

:)

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
Sign in to follow this  

×