Jump to content

Sign in to follow this  
Jan_F_W

MP - Calling Script when vehicle gets destroyed

Recommended Posts

Hi guys,

how can I call a script when a verhicle gets destroyed?

I would like to rearm/reconfigure certain units after they have been destroyed.

Im not sure but I would use something like this:

- UNIT addEventHandler ["Killed", {_this exec "Skript.sqs"}]

[Name1,Name2,Name3] exec "skript.sqs" for the group.

in the script I would write something like:

_Unit = _this select 0
@alive _Unit
removeallWeapons _Unit
_Unit addmagazine "30Rnd_545x39_AKSD";
_Unit addweapon "AKS74UN";
exit;

Is this the way it would work?

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  

×