I am tinkering around with the editor a bit, starting off with the tutorials provided by BIS.
I coped their BykerGrove2 script from the video, and later directly from the IED.sqf provided with their tutorial mission.
I made a slight change to the array to have a few other options.
My current IED.sqf file is:
// an array of ammunition for the IED
_shellArray =
[
"B_30mm_HE",
"Sh_125_HE",
"Bo_Mk82",
"ARTY_Sh_105_HE",
"ARTY_R_120mm_HE_Rocket"
];
// Select random explosion type:
_shell = _shellArray call BIS_fnc_selectRandom;
// Spawn the explosion
_explosion = _shell createVehicle position IED;
I have a Trigger set to On Activation for the following
_nil = [] execVM "IED.sqf"
There is also an object placed named IED (a pile of trash, just like in the tutorial). Finally, I added the Module - Functions to the mission just to be sure that the bis_func_selectRandom was available.
All of this is a direct copy again from the tutorial. The Trigger executes the IED.sqf, which picks an explosion from the array and detonates it at the location of object IED.
...
Nothing explodes.
Just for giggles, I ran the BykerGrove2 tutorial mission and EVERY TIME that I drive by the trash, a small bit of smoke comes out of it but no explosion. What is going on here?