Skip to content

Instantly share code, notes, and snippets.

@Cuel
Last active April 20, 2018 13:03
Show Gist options
  • Save Cuel/a4ae808ca93cf9fa32679aa9fee44b21 to your computer and use it in GitHub Desktop.
Save Cuel/a4ae808ca93cf9fa32679aa9fee44b21 to your computer and use it in GitHub Desktop.
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