Custom Buildings On Server Side Duplicating.

DeadWing

New Member
Hi,

I've customized a Celle server and have an issue with buildings duplicating on the map when added server side (one building inside another, double doors). Does anyone know a fix?
 
Make sure that you have:
Code:
if (isServer) then {
At the very top of the sqf of your custom buildings. Eg:
Code:
if (isServer) then {

_vehicle_19 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_runway_beton", [13486.942, 15797.813, 0.00014805794], [], 0, "CAN_COLLIDE"];
  _vehicle_19 = _this;
  _this setDir -43.995461;
  _this setPos [13486.942, 15797.813, 0.00014805794];
};

The server runs the actual server_functions a couple of times or so during startup this is the cause as it simply loads it multple times.
 
Make sure that you have:
Code:
if (isServer) then {
At the very top of the sqf of your custom buildings. Eg:
Code:
if (isServer) then {

_vehicle_19 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_runway_beton", [13486.942, 15797.813, 0.00014805794], [], 0, "CAN_COLLIDE"];
  _vehicle_19 = _this;
  _this setDir -43.995461;
  _this setPos [13486.942, 15797.813, 0.00014805794];
};

The server runs the actual server_functions a couple of times or so during startup this is the cause as it simply loads it multple times.

Yes, I know that, mate. It still dupes buildings:

if (isServer) then {

_vehicle_1 = objNull;
if (true) then
{
_this = createVehicle ["Land_Wall_L3_5m_EP1", [9091.0215, 2755.3999, -1.7166138e-005], [], 0, "CAN_COLLIDE"];
_vehicle_1 = _this;
_this setDir -107.31462;
_this setPos [9091.0215, 2755.3999, -1.7166138e-005];
};

};
 
Back
Top