Jump to content
  • 0

Respawn destroyed base parts on server restart?


Snowmobil

Question

2 answers to this question

Recommended Posts

  • 0

My guess is you would have to call in a .sqf with something such as the example below:

 

if (isServer) then {



_vehicle_26 = objNull;
if (true) then
{
  _this = createVehicle ["WoodLargeWall_DZ", [8258.4502, 3051.6863, 36.945126], [], 0, "CAN_COLLIDE"];
  _vehicle_26 = _this;
  _this setDir 29.979698;
  _this setPos [8258.4502, 3051.6863, 36.945126];
};
};

 

The coords can be grabbed from the object_data portion in your database....

 

Don't quote me on this as I have only owned a server for a month :p

 

You could also just readd it via sql.

 

Hope this helps in some way or form,

~RAMBO

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...