本帖最后由 yyxhx 于 2014-8-15 12:26 编辑
首先我想给楼主提个建议:排版!!!!!!!看的我眼都花了!!!!!!
//填写到Init.sqf中
YourGroupList = [小组1, 小组2, 小组3, 小组4, 小组5, 小组6];
SUR_fnc_countBigGroupUnits = {
private ["_count", "_countAll"];
_countAll = 0;
for "_i" from 0 to ((count YourGroupList) - 1) do {
_count = count Units (YourGroupList select _i);
_countAll = _countAll + _count;
};
_countAll;
};
//剩余人数小于3做法
waitUntil {([] call SUR_fnc_countBigGroupUnits) < 3};
触发警报
//死亡人数大于等于3做法
private ["_allCount"];
_allCount = [] call SUR_fnc_countBigGroupUnits;
waitUntil {([] call SUR_fnc_countBigGroupUnits) <= (_allCount - 3)};
触发警报
/*
如果想要在触发器中用的话,把“触发警报”改为:alentActived = true;
触发器条件改为:this and alentActived
*/ |