瀏覽代碼

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

Make CCP positioning ignore collision
Erliens 3 年之前
父節點
當前提交
271532f937
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      addons - Copy/RD501_Main/functions/medical_ccp/fnc_deployCCPServer.sqf

+ 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;