Initial baseline - KP Liberation v0.96.7a Ruha variant
This commit is contained in:
23
scripts/server/remotecall/start_secondary_remote_call.sqf
Normal file
23
scripts/server/remotecall/start_secondary_remote_call.sqf
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user