if (!isServer) exitWith {false}; params [ ["_mission_index", -1, [0]] ]; if (_mission_index < 0) exitWith {false}; if (isNil "GRLIB_secondary_starting") then { GRLIB_secondary_starting = false;}; if (GRLIB_secondary_starting) exitWith {["Multiple calls to start secondary mission : shouldn't be possible, isn't allowed", "ERROR"] call KPLIB_fnc_log;}; if (isNil "used_positions") then {used_positions = [];}; GRLIB_secondary_starting = true; publicVariable "GRLIB_secondary_starting"; resources_intel = resources_intel - ( GRLIB_secondary_missions_costs select _mission_index ); if (_mission_index == 0) then {[] spawn fob_hunting;}; if (_mission_index == 1) then {[] spawn convoy_hijack;}; if (_mission_index == 2) then {[] spawn search_and_rescue;}; GRLIB_secondary_starting = false; publicVariable "GRLIB_secondary_starting"; true