Sarge-AI/ModName.MapName/scripts/UPSMON/COMMON/unit/fnc/UPSMON_surrended.sqf
Teh Dango 65e4453908 2.4.0
Major Update. Now supporting DesolationRedux, Epoch and Exile.
2017-12-31 03:16:37 -05:00

23 lines
411 B
Plaintext

/****************************************************************
File: UPSMON_surrended.sqf
Author: MONSADA
Description:
Function to surrender AI soldier
Parameter(s):
Returns:
****************************************************************/
private ["_grp"];
_grp = _this select 0;
UPSMON_NPCs = UPSMON_NPCs - [_grp];
{
If (alive _x) then
{
[_x] spawn UPSMON_DoSurrender;
};
} foreach units _grp;