I tried putting this all in a trigger... not sure why it wasn't working but too much time spent so ended up doing it this way.
Create a script in your mission folder called "blowup.sqf".
blowup.sqf:-
PHP Code:
_dude = (_this select 0) select 0;
playsound "allahuakhbar";
sleep 5;
_bomb = "Bo_GBU12_LGB" createVehicle getpos _dude;
Call it with this from your triggers OnAct...
PHP Code:
nul = [thislist] execVM "blowup.sqf";
If you don't already have a description.ext in your mission folder...create one and put this in it. Make sure you have the sound file... and also make sure you either save or reload the mission after making changes to description.ext... or the changes won't be applied and you'll wonder what the hell is going on!
description.ext:-
PHP Code:
class CfgSounds
{
sounds[]= {allahuakhbar};
class allahuakhbar
{
name = "allahuakhbar";
sound[] = {allahuakhbar.ogg, 1, 1.0};
titles[] = {};
};
};
Good luck!