Advertisement
zSkullfox

Untitled

Jan 26th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. _objects = getArray(missionconfigfile >> "fox_factions" >> "EAST" >> _faction >> "carsS") + getArray(missionconfigfile >> "fox_factions" >> "EAST" >> _faction >> "carsA");
  2. _targets = [];
  3. _n = (ceil random 3) + 1;
  4. _condition = "";
  5. for [{_i=0}, {_i < _n}, {_i=_i+1}] do
  6. {
  7.  
  8. _pos = _markerstr call BIS_fnc_randomPosTrigger;
  9. _t = createVehicle [selectRandom _objects, _pos, [], 0, "NONE"];
  10. _targets pushBack _t;
  11. if(_i < (_n - 1))then{
  12. _condition = _condition + format["!alive (%1 call BIS_fnc_objectFromNetId) AND ",str (_t call BIS_fnc_netId)];
  13. }else{
  14. _condition = _condition + format["!alive (%1 call BIS_fnc_objectFromNetId)",str (_t call BIS_fnc_netId)];
  15. };
  16.  
  17. };
  18.  
  19. systemchat _condition;
  20. _trg = createTrigger ["EmptyDetector", _position];
  21. _trg setTriggerArea [1 ,0, 0, false];
  22. _trg setTriggerActivation ["NONE", "NONE", true];
  23. _trg setTriggerStatements [ format["call %1", compile _condition ], format["systemchat 'test';[%1,%2]call fox_alive_fnc_updateTask; deleteMarker '%3';",str _taskID,str "SUCCEEDED", _markerstr], ""];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement