Jump to content
  • 0

Move Trader Vehicle Spawns (solved)


Kovicson

Question

Hi folks!

 

I'm trying to move the Vehicle Spawns for Traders, Especially Klen and Bash. Seems like the vehicles spawn right next to the trader that sells vehicles wondering how on earth do I move them!

As far as I know.. you add the "HeliHCivil" but apart from I dunno how to link up the trader to that spawn

 

Any help would be great! Thank you

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0
  • 0
11 minutes ago, oldmatechoc said:

Thank you for the reply man, I'll give this a try! As soon as I can 

Link to comment
Share on other sites

  • 0
18 hours ago, oldmatechoc said:

Hey man, sadly I dont have those files.. Do I have to install another script for that to work?

Link to comment
Share on other sites

  • 0
1 minute ago, lwbuk said:

Bear in mind if you edit anything in dayz_code, you need to move it to your mission file and change any calls to it, otherwise it won't work. 

All I wanna do is add the "HeliHCivil" to traders.. assuming I use this - 

 

["HeliHCivil",[11496,11335.3,0.0],248.275],

Thats for Klen and would be okay or would it be better to add it like - 

 

_vehicle_15679 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [11493.8, 11331.8, 0.00146484], [], 0, "CAN_COLLIDE"];
  _vehicle_15679 = _this;
  _this setDir 151.845;
  _this setPos [11493.8, 11331.8, 0.00146484];
};

 

Link to comment
Share on other sites

  • 0

Here's how I do it:

Move this file to your mission somewhere, mine is in scripts\ now:

  1. https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/system/mission/chernarus11.sqf
  2. in your init.sqf find this line: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L109 change it to correspond to where you have put the file in the first step, i.e: 
    call compile preprocessFileLineNumbers "scripts\chernarus11.sqf"; //Add trader city objects locally on every machine early

     

  3. edit your now copied chernarus11.sqf and modify the positions of the HeliHEmpty to where you want them

  4. repack your pbo

  5. test

  6. profit

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
  • Discord

×
×
  • Create New...