Sandbird Posted April 23, 2014 Report Share Posted April 23, 2014 I am writing a script and i need to spawn a vehicle based on the object_data entry of it. It has some items inside it already (written in the database). Forget about epoch not doing this without custom SQLs and stuff. How does this [[["AKS_74_kobra"],[1]],[["ItemSodaPepsi","ItemSodaCoke","ItemPainkiller","ItemMorphine","15Rnd_9x19_M9SD","ItemJerrycan","ItemGoldBar10oz","ItemSilverBar","wooden_shed_kit","30Rnd_545x39_AK","ItemBandage"],[2,2,2,2,2,1,1,2,1,2,2]],[[],[]]] gets inside the vehicle when the server starts ? Where is that piece of code that does that ? Is it done by the .dll ? or is there somewhere an addweapon, addmagazine type of thing looping the array ? -Thanks Link to comment Share on other sites More sharing options...
0 Sandbird Posted April 23, 2014 Author Report Share Posted April 23, 2014 Ok i think i found it in server_monitor.sqf. Ignore this :) Link to comment Share on other sites More sharing options...
0 Sandbird Posted April 23, 2014 Author Report Share Posted April 23, 2014 I think that's made in server_monitor.sqf or server_functions.sqf. loot in vehicle part hehehe call my Flash Gordon :P lol Thanks xBowBii Link to comment Share on other sites More sharing options...
0 jahangir13 Posted April 24, 2014 Report Share Posted April 24, 2014 @ Sandbird: you can find these things in the linux version (Epoch Linux Forum) if you download the server.pbo from there...as all these things (objects, players, inventories) are handled by 'cache' files. If you use a tool to search in all the files of dayz_server.pbo for "cache" you see all the files where cache files are loaded from the file system to put them into the game again. Greets Link to comment Share on other sites More sharing options...
0 Sandbird Posted April 24, 2014 Author Report Share Posted April 24, 2014 @ Sandbird: you can find these things in the linux version (Epoch Linux Forum) if you download the server.pbo from there...as all these things (objects, players, inventories) are handled by 'cache' files. If you use a tool to search in all the files of dayz_server.pbo for "cache" you see all the files where cache files are loaded from the file system to put them into the game again. Greets Yup i did something similar, i extracted the dayz_code.pbo and have this and the dayz_server.pbo under my search finger :P I found what i was looking for...I am trying to write a script that will spawn vehicles with inventory loaded...taken from the db. Link to comment Share on other sites More sharing options...
Question
Sandbird
I am writing a script and i need to spawn a vehicle based on the object_data entry of it.
It has some items inside it already (written in the database).
Forget about epoch not doing this without custom SQLs and stuff.
How does this
gets inside the vehicle when the server starts ?
Where is that piece of code that does that ?
Is it done by the .dll ? or is there somewhere an addweapon, addmagazine type of thing looping the array ?
-Thanks
Link to comment
Share on other sites
4 answers 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