arma3_missions/helotraining.Altis/playerkilled.sqf

23 lines
616 B
Plaintext
Raw Normal View History

2016-07-24 09:34:55 +00:00
diag_log format["playerkilled called, _this: %1", _this];
_evt = _this select 0;
2016-07-24 12:09:54 +00:00
_target = _evt select 0;
2016-07-24 09:34:55 +00:00
_playerno = _this select 1;
_taskid = taskIdsArray select _playerno;
null = [_taskid, "FAILED", False] spawn BIS_fnc_taskSetState;
2016-07-24 10:39:43 +00:00
taskIdsArray set [_playerno, ""];
2016-07-24 09:34:55 +00:00
publicVariable "taskIdsArray";
_squadArray = squadMDArray select _playerno;
_enemyArray = enemyMDArray select _playerno;
{
[_x, "east", _playerno] execVM "deleteSquad.sqf";
} foreach _enemyArray;
publicVariable "enemyMDArray";
{
[_x, "west", _playerno] execVM "deleteSquad.sqf";
} foreach _squadArray;
publicVariable "squadMDArray";