Advertisement
Guest User

Untitled

a guest
May 12th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. _caller = _this select 1;
  2.  
  3. cjb_addObjectiveToSides = {
  4. private["_objectiveParams","_factions","_faction","_opcom","_opcomSide"];
  5. _objectiveParams = _this select 0;
  6. _factions = _this select 1;
  7. {
  8. _opcom = _x;
  9. {
  10. _faction = _x;
  11. _opcomSide = [_opcom,"side",""] call ALiVE_fnc_HashGet;
  12.  
  13. if( _opcomSide == _faction) then {
  14. [_opcom, "addObjective", _objectiveParams] call ALiVE_fnc_OPCOM;
  15. };
  16. } forEach _factions;
  17. } forEach OPCOM_INSTANCES;
  18. };
  19.  
  20. _n = format["%1_obj", floor (random 1000)];
  21. [[_n, getPos _caller, 100,"MIL"],["WEST","EAST","RESISTANCE"]] call cjb_addObjectiveToSides;
  22. hint "FOB has been set";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement