mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
23 lines
616 B
Plaintext
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";
|