JohnyMST Posted October 26, 2013 Report Share Posted October 26, 2013 Guys, I decided to spawn in a an Apache heli in Hero Traders with the below SQL command: INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["AH64D_EP1",1]', 15, '[7,"ItemBriefcase100oz",1]', '[3,"ItemBriefcase100oz",1]', 493, 'trade_any_vehicle'); The Heli spawns in with Ammo and Hydras. How can I disable in the above line that heli spawns in with NO Ammunition? Is there some code to add to tell the database that heli should have no ammo when it spawns? Thanks a lot! Link to comment Share on other sites More sharing options...
0 xoleum Posted October 27, 2013 Report Share Posted October 27, 2013 The class "AH64D_EP1" itself specifies how much ammo is in it. you'll have to change the class specification or add another class to the file that defines the Apache helicopter, basically the same way as epoch itself did in the last patch for the _DZE vehicles. Take a look at @DayZ_Epoch\addons\dayz_code\Configs\CfgVehicles\AIR, there are some examples there that you can use. As you can see the _DZE vehicles have: magazines[] = {}; You'll have to make your own version of the file that defines the Apache. It can be found in Arma 2 Operation Arrowhead/addons/AH64.pbo. use unrap to unpack the config.bin file and you'll get a file called CfgVehicles.hpp, thats the one you want to modify. Link to comment Share on other sites More sharing options...
Question
JohnyMST
Guys,
I decided to spawn in a an Apache heli in Hero Traders with the below SQL command:
The Heli spawns in with Ammo and Hydras. How can I disable in the above line that heli spawns in with NO Ammunition?
Is there some code to add to tell the database that heli should have no ammo when it spawns?
Thanks a lot!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now