Jump to content

Dynamic Vehicles question


DanucasB

Recommended Posts

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_server/init/server_functions.sqf#L179-L201

 

That is the block of code u need to alter... so it will understand the nested arrays..

 

_vehicle = (_index select 0) call BIS_fnc_selectRandom;
 
_qty = 0;

{
   _tmp_vehicle = _x;
   _qty = _qty + ({_x == _tmp_vehicle} count serverVehicleCounter);
} forEach (_index select 0);

 

U will also need to alter your entire dynamic vehicles entries and turn all the vehicle entries into an array..

 

AllowedVehiclesList = [
[["AH6X_DZ","MH6J_DZ"],1],
[["AN2_DZ"],3],

 

Note this is un-tested and most likely has some typo mistakes...

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