zSkullfox icon

Untitled

zSkullfox | PRO | 01/26/19 10:16:47 AM UTC | 0 ⭐ | 266 👁️ | Never ⏰ | []
text |

1.06 KB

|

None

|

0 👍

/

0 👎

_objects = getArray(missionconfigfile >> "fox_factions" >> "EAST" >> _faction >> "carsS") + getArray(missionconfigfile >> "fox_factions" >> "EAST" >> _faction >> "carsA");
_targets = [];
_n = (ceil random 3) + 1;
_condition = "";
for [{_i=0}, {_i < _n}, {_i=_i+1}] do
{
     _pos = _markerstr call BIS_fnc_randomPosTrigger;
    _t = createVehicle [selectRandom _objects, _pos, [], 0, "NONE"];
    _targets pushBack _t;
    if(_i < (_n - 1))then{
      _condition = _condition + format["!alive (%1 call BIS_fnc_objectFromNetId) AND ",str (_t call BIS_fnc_netId)];
    }else{
      _condition = _condition + format["!alive (%1 call BIS_fnc_objectFromNetId)",str (_t call BIS_fnc_netId)];
    };
 };
 systemchat _condition;
_trg = createTrigger ["EmptyDetector", _position];
_trg setTriggerArea [1 ,0, 0, false];
_trg setTriggerActivation ["NONE", "NONE", true];
_trg setTriggerStatements [ format["call %1", compile _condition ], format["systemchat 'test';[%1,%2]call fox_alive_fnc_updateTask; deleteMarker '%3';",str _taskID,str "SUCCEEDED", _markerstr], ""];

Comments