Okey, ill use this threads to post some stuff..
found this function to add objectives to opcom
//Example:[["ID_Name", Position, Obective size,"MIL",300],["EAST"]] call cjb_addObjectiveToSides;
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;
};
and i figuered this would work in similar fasion (iam not at home so its untestedcode)
//Example:["ID_Name","SIDE"] call cjb_addObjectiveToSides;
cjb_RemoveObjectiveToSides =
{
private["_factions","_faction","_opcom","_opcomSide"];
_id = _this select 0;
_factions = _this select 1;
{
_opcom = _x;
{
_faction = _x;
_opcomSide = [_opcom,"side",""] call ALiVE_fnc_HashGet;
if( _opcomSide == _faction) then {
[_opcom, "removeObjective", _id] call ALiVE_fnc_OPCOM;
};
} forEach _factions;
} forEach OPCOM_INSTANCES;
};