Jump to content
  • 0

KILLING A HACKER


kingpapawawa

Question

["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","kpw"," IN ","KORD_high_TK_EP1"]

in my custom variables i have 

DZE_safeVehicle = ["ParachuteWest","ParachuteC","KORD_high_TK_EP1"];

 

loading the KORD in via .sqf in the server pbo


_vehicle_613 = objNull;
if (true) then
{
  _this = createVehicle ["KORD_high_TK_EP1", [4118.1001, 7245.6196, 9.1946907], [], 0, "CAN_COLLIDE"];
  _vehicle_613 = _this;
  _this setDir 186.50471;
  _this setPos [4118.1001, 7245.6196, 9.1946907];
};

 

Any ideas?

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  On 1/27/2017 at 7:09 PM, kingpapawawa said:

["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","kpw"," IN ","KORD_high_TK_EP1"]

in my custom variables i have 

DZE_safeVehicle = ["ParachuteWest","ParachuteC","KORD_high_TK_EP1"];

 

loading the KORD in via .sqf in the server pbo


_vehicle_613 = objNull;
if (true) then
{
  _this = createVehicle ["KORD_high_TK_EP1", [4118.1001, 7245.6196, 9.1946907], [], 0, "CAN_COLLIDE"];
  _vehicle_613 = _this;
  _this setDir 186.50471;
  _this setPos [4118.1001, 7245.6196, 9.1946907];
};

 

Any ideas?

 

Expand  
_vehicle_613 = objNull;
if (true) then
{
  _this = createVehicle ["KORD_high_TK_EP1", [4118.1001, 7245.6196, 9.1946907], [], 0, "CAN_COLLIDE"];
  _vehicle_613 = _this;
  _this setDir 186.50471;
  _this setPos [4118.1001, 7245.6196, 9.1946907];
  dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_this];
};

This should fix it.

Link to comment
Share on other sites

  • 0
  On 1/27/2017 at 8:12 PM, salival said:
_vehicle_613 = objNull;
if (true) then
{
  _this = createVehicle ["KORD_high_TK_EP1", [4118.1001, 7245.6196, 9.1946907], [], 0, "CAN_COLLIDE"];
  _vehicle_613 = _this;
  _this setDir 186.50471;
  _this setPos [4118.1001, 7245.6196, 9.1946907];
  dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_this];
};

This should fix it.

Expand  

Yes! thank you. been pulling my hair out.

Link to comment
Share on other sites

  • 0
  On 7/15/2017 at 9:17 AM, TheBillsProject said:

I have the same issue but with custom vehicles. Where do I put what you said above to fix the issue.

Expand  

If ure spawning vehicles by server side use the line from above. If ure using this veh by client..example spawn a bike with right click action then add the veh id into dze safevehicle variable.

 

Example:

1-Server side like kingpapawa case:

veh.sqf

  Reveal hidden contents

Example 2: server side (spawning an heli with a epoch event)

  Reveal hidden contents

 

Example 3: client.  (add a vehicles in server spawns and locals scripts)

custom variables.sqf

at bottom add:

  Reveal hidden contents

and into: \@DayZ_Epoch_Server\addons\dayz_server\system\dynamic_vehicle.sqf

  Reveal hidden contents

 

And for understand all of this.. check this file: \@DayZ_Epoch_Server\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf

  Reveal hidden contents

 

So now you know about this file.. other way is create a variable for custom vehicles.. then you dont need add the obj monitor line or entry his id in DZE_safevehicle.

Ok:

first open the sched_safetyVehicle.sqf

and replace the whole code by this one:

  Reveal hidden contents

Now in the file that youre creating the vehicle.. add the variable.. gonna take the first example that i give you:

veh.sqf

  Reveal hidden contents

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...