Forum Jump :

Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 58
In-game name: Kobayashi Maru

 
#191944 Posted at 2016-10-01 22:22        
     
You could try by an event handler in the init.sqf file:

say kamikaze is the unit's name:
if (isServer) then {
  kamikaze addEventHandler ["killed", {
    params ["_victim","_killer"];
    if (_killer == _victim) then {
     "LOSER" call bis_fnc_EndMission
    } else {
     "END1" call bis_fnc_endMission
    }
  }]
};
NB : this also trigger a mission failed if the unit kills himself in a car accident... Caution!

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS