mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
65e4453908
Major Update. Now supporting DesolationRedux, Epoch and Exile.
23 lines
411 B
Plaintext
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; |