Ver código fonte

Merge pull request #177 from 501st-Aux-Mod-Team/fix-ccp-spawn-position

Make CCP positioning ignore collision
Erliens 3 anos atrás
pai
commit
271532f937

+ 2 - 2
addons - Copy/RD501_Main/functions/medical_ccp/fnc_deployCCPServer.sqf

@@ -18,8 +18,8 @@ params["_target"];
 
 _position = position _target;
 deleteVehicle _target;
-_spawner = rd501_medical_ccp_building createVehicle _position;
+_spawner = createVehicle[rd501_medical_ccp_building, _position, [], 0, "CAN_COLLIDE"];
 systemChat format["Deployed CCP"];
 
 _jipId = ["rd501_medical_ccp_deployCCPLocal", [_spawner]] call CBA_fnc_globalEventJIP; // raise on all clients (we should be on server)
-[_jipId, _spawner] call CBA_fnc_removeGlobalEventJIP;
+[_jipId, _spawner] call CBA_fnc_removeGlobalEventJIP;