Forum Jump :

Author Message


Posts: 3
Rank:


Level: Member

Country: hr
Location:
Occupation:
Age:
In-game name: FireStar

 
#1 Posted at 2014-04-30 12:47        
     
Hi all...I'd like to please some scripter or modder to explain me how I can add new cars in police vehicle shops and civilian car shops...i have added cars in masterarray.sqf but i dont know what to do further...I have try to find if I can do something in shops.sqf but without luck... Plase help me I just want to add Vilas Car Pack to the mission so I can play it on LAN with my friends, this totally freaking me out these days I searching for possible solution to my problem but nothing to find there :(

This post was edited by FireStar2511 (2014-04-30 12:54, ago)


Author Message


Posts: 3
Rank:


Level: Member

Country: hr
Location:
Occupation:
Age:
In-game name: FireStar

 
#2 Posted at 2014-05-02 17:09        
     
Ok, guys if u want to to add a car into your chernarus life mission or in any other "life" mission ill give you an example for doing it at right way...in the mission folder u'll find the masterarray.sql and shops.sql which u need to messing up with. U need to put vehicle's class names into masterarray.sqf because of mission can read it. For example:

1. In masterarray.sqf add the class name of the vehicle under the line of vehicles
my example:
["VIL_kiakombi_ue",["Fahrzeug", "car"],["VIL_kiakombi_ue", "KIACeedII(Police)"],[20000, 5000], [1, "car", "", 100], [150, [1,0,0,3]], "VIL_kiakombi_ue" call ISSE_Cfg_Vehicle_GetName, "VIL_kiakombi_ue" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["mineraloel", 5]] ],

2. In shops.sqf find the shop line and see what lines of vehicle's it needs to read it. In my case it's _cv.
- in _cv line i have cars class names which is already in the mission, so I need to add class name of my vehicle to the end of the line
my example:
_cv = ["MMT_USMC","M1030", "LadaLM", "hilux1_civil_3_open", "Kamaz", "VIL_kiakombi_ue"]; 

3. Again in the shops.sqf u'll find the line like: _cv// [-1, -1, -1, -1, -1];
- then u need to add one "-1" without quotes so car can be added in the shop's stock
my example:
_cv// [-1, -1, -1, -1, -1, -1];
"-1" means infinite

And voila it works like a charm! 8-)


Advertisement


Author Message


Posts: 20253
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#3 Posted at 2014-05-02 17:15        
     
Thank you very much, I hope this will help some other folks trying to get the same result *THUMBS UP*


PS, I will remove those other posts later

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 3
Rank:


Level: Member

Country: hr
Location:
Occupation:
Age:
In-game name: FireStar

 
#4 Posted at 2014-05-02 17:55        
     
I hope so too...also i have the question for vilas if he can send me somehow class names of the civ cars cause i didn't found it in the .pbo/config file...thx in advance :-)






Tags: Add, Car, Chernarus, Life