Skip to content

Instantly share code, notes, and snippets.

@johnsmm
Created August 30, 2016 18:34
Show Gist options
  • Save johnsmm/82b256a6182cbd5100d435a642ae2b8e to your computer and use it in GitHub Desktop.
Save johnsmm/82b256a6182cbd5100d435a642ae2b8e to your computer and use it in GitHub Desktop.
{
_logic = (_x) call CTI_CO_FNC_GetSideLogic;
_defensive_team = _logic getVariable "cti_defensive_team";
//--- Make sure that AIs didn't ran out of their statics
{
if (vehicle _x == _x) then {deleteVehicle _x};
} forEach units _defensive_team;
} forEach CTI_PLAYABLE_SIDES;
_ai spawn {
while {alive _this} do {
_this setBehaviour "AWARE";
_this setCombatMode "RED";
_this enableAttack true;
};
_ncycle = time + 20;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment