Sarge-AI/ModName.MapName/scripts/UPSMON/COMMON/unit/fnc/UPSMON_surrended.sqf

23 lines
411 B
Plaintext
Raw Normal View History

/****************************************************************
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;