Browse Source

Make event fire on listen servers

m3ales 4 years ago
parent
commit
e231ce1654

+ 4 - 1
addons - Copy/RD501_Main/functions/medical_ccp/fnc_deployCCPServer.sqf

@@ -5,4 +5,7 @@ deleteVehicle _target;
 _spawner = rd501_medical_ccp_building createVehicle _position;
 systemChat format["Deployed CCP"];
 
-["rd501_medical_ccp_deployCCPLocal", [_spawner]] call CBA_fnc_remoteEvent; // raise on all clients (we should be on server)
+if(isDedicated) exitWith {
+	["rd501_medical_ccp_deployCCPLocal", [_spawner]] call CBA_fnc_remoteEvent; // raise on all clients (we should be on server)
+};
+["rd501_medical_ccp_deployCCPLocal", [_spawner]] call CBA_fnc_globalEvent;