Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _caller = _this select 1;
- cjb_addObjectiveToSides = {
- private["_objectiveParams","_factions","_faction","_opcom","_opcomSide"];
- _objectiveParams = _this select 0;
- _factions = _this select 1;
- {
- _opcom = _x;
- {
- _faction = _x;
- _opcomSide = [_opcom,"side",""] call ALiVE_fnc_HashGet;
- if( _opcomSide == _faction) then {
- [_opcom, "addObjective", _objectiveParams] call ALiVE_fnc_OPCOM;
- };
- } forEach _factions;
- } forEach OPCOM_INSTANCES;
- };
- _n = format["%1_obj", floor (random 1000)];
- [[_n, getPos _caller, 100,"MIL"],["WEST","EAST","RESISTANCE"]] call cjb_addObjectiveToSides;
- hint "FOB has been set";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement