Last active
April 20, 2018 13:03
-
-
Save Cuel/a4ae808ca93cf9fa32679aa9fee44b21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fnc_terry = { | |
[{ | |
params ["_args", "_id"]; | |
private _alive = [] call CBA_fnc_players - ([] call ace_spectator_fnc_players); | |
{ | |
_x params ["_side", "_code", "_winType"]; | |
private _units = _alive select {side group _x == _side}; | |
if (_units call _condition) exitWith { | |
[_winType] remoteExec ["BIS_fnc_endMission"]; | |
[_id] call CBA_fnc_removePerFrameHandler; | |
}; | |
} forEach _args; | |
}, 1, _this] call CBA_fnc_addPerFrameHandler; | |
}; | |
[ | |
[blufor, {_this isEqualTo []}, "BluforDead"], | |
[opfor, {_this isEqualTo []}, "OpforDead"], | |
[civilian, {_this isEqualTo []}, "CivilianDead"], | |
[civilian, {_this isEqualTo (_this inAreaArray [markerPos "blumarker", 40,40, 0, false])}, "CivBluforEscape"], | |
[civilian, {_this isEqualTo (_this inAreaArray [markerPos "opformarker", 40,40, 0, false])}, "CivOpforEscape"], | |
] call fnc_terry; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment