arma3_missions/helotraining.Altis/playerkilled.sqf
2016-07-24 15:09:54 +03:00

23 lines
616 B
Plaintext

diag_log format["playerkilled called, _this: %1", _this];
_evt = _this select 0;
_target = _evt select 0;
_playerno = _this select 1;
_taskid = taskIdsArray select _playerno;
null = [_taskid, "FAILED", False] spawn BIS_fnc_taskSetState;
taskIdsArray set [_playerno, ""];
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";