Jump to content
Sign in to follow this  
Bellicosity

Catch when satchel charge explodes

Recommended Posts

I get how to catch when someone places it but how do you catch when it explodes?

I'd like the alarm to go off if it explodes, so if there is code to catch if ANYTHING explodes that'll probably work too

Share this post


Link to post
Share on other sites

Can you attach a fired eventhandler to the satchel? If not, maybe just check if it's still alive?

Share this post


Link to post
Share on other sites

I tried this on a fired eventhandler but it also fires if they pick up the satchel

_unit = _this select 0;
_weapon = _this select 1;
_muzzle = _this select 2;
_mode = _this select 3;
_ammo = _this select 4;

_shot = nearestObject [_unit, _ammo];
sleep 0.005;

waitUntil { !alive _shot };

hint "Boom?";

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  

×