Jump to content
  • 0

Roaming Traders


Wizz

Question

Hey All,

 

So i was wondering if there is a current script were i can have two traders that roam the map. I want to have two Helicopter Traders that spawn randomly on the map anywhere but change position on restart. They have no god mode or anything just the trader and some things around it so they can buy helicopters.

 

Thanks,

Wizz,

Alantis Owner

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

@Wizz

i guess you already have a custom traders files. and you know how to add new traders

write two traders in arma2oa editor 3d and in the bottom of server_functions.sqf add

private ["_randomNumbers"];
_randomNumbers = floor(random 100);

if (_randomNumbers <= 50) then { 
call compile preProcessFileLineNumbers "z\addons\dayz_server\maps\YOUR CUSTOM TRADER NAME.sqf";
};
if (_randomNumbers <= 100 && _randomNumbers >51) then { 
call compile preProcessFileLineNumbers "z\addons\dayz_server\maps\YOUR CUSTOM TRADER NAME2.sqf";
};

PD: Like youre avatar :laugh:

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...