Matosh 34 Posted January 4, 2012 Will magic box refill itself or its needed script to do it. Share this post Link to post Share on other sites
columdrum 11 Posted January 4, 2012 (edited) Ace questions, ACE thread. Yes it fills automatically, but you can config some things about how it gets filled via variables, see the ACE documentation for more info: http://ace.dev-heaven.net/wagn/Weapons_System+description http://ace.dev-heaven.net/wagn/Weapons_System+notes About the "refill" if you mean if it will regenerate the weapons, i thing that no, you would need to make a script to do that. But you may not need that, because the magicbox is a local box. So every client would have their weapons, same thing that in domination for example. So even if there is only 4 M4, there will be 4 M4 for every player because the box is local ^^. https://dev-heaven.net/projects/ace-mod2/repository/revisions/develop/entry/Addons/sys_weapons/fnc_init.sqf (script that creates the box and fill it, " ace_sys_weapons_fnc_init") Edited January 4, 2012 by columdrum Share this post Link to post Share on other sites
Matosh 34 Posted January 4, 2012 (edited) I already know about stuff in those links, but if you took 2 M4s, 2 left in box, will that 2 M4s refill in box or i need script. Will script regenerate weapons since those weapons are not in script or i have to added them which one i want to refill. I meant on top 2 links Edited January 4, 2012 by matosinec Share this post Link to post Share on other sites
columdrum 11 Posted January 4, 2012 The last link( if you have a dev-heaven acount) shows you the script that fills the box. And as i already said, no it just fills the box once. So yes, you will need to refill it by script if you want to keep the same number of weapons. But remember that they are local: if you reconnect they will refill again, and each player have their virtual box, so if you take a weapon, other player would still see it on their box, because they are diferent weaponboxes ^^. Share this post Link to post Share on other sites
Matosh 34 Posted January 4, 2012 Can i change amount of weapons not like remove weapons but increase number for example: weapons are set to 2 each, magazines 16 so id like to set 10 weapons each and 100 magazines each, i had some ideas but they didnt work. Share this post Link to post Share on other sites
sickboy 13 Posted January 4, 2012 You could copy and adjust the magicbox init script: https://dev-heaven.net/projects/ace-mod2/repository/revisions/develop/entry/Addons/sys_weapons/fnc_init.sqf But already if there are 10 players there are actually 10 boxes, so 20 of each rifle and 120 magazines, 2 and 12 respectively per player. In any case for future releases i've added ace_sys_weapons_magicbox_weapons_count and magazines_count global variables, so you can adjust the numbers Share this post Link to post Share on other sites
Matosh 34 Posted January 4, 2012 Thanks both of you. Share this post Link to post Share on other sites
avibird 1 155 Posted January 4, 2012 (edited) A very simple way but elmentary way of doing this is by placing down a weapon or ammo box and then delete it's content from it's inti box. Then add what ever you want:yay: (each box has a limit what it can hold). Then you simply add one of the many vehicle respawn scripts around into the box and you are done:) When you are out of the weapon or ammo you need the cool thing is you just destroy the box and it respawns with all the content you put into it.:bounce3: I now it is not realistic but it works great and you can't really fuck up with the setup. I have been around here for a long time played OFP back in the day but suck at setting up scripts. I am just now able to look at them and understand a little. even able to edit a little now with not that must damage to my files. Just a tip always make a backup of your mission folder before you start editing or placing scripts into you files. You can't mess up in the unit init box like you can in your files. Take care see you around the forums AVIBIRD. Will magic box refill itself or its needed script to do it. I already know about stuff in those links, but if you took 2 M4s, 2 left in box, will that 2 M4s refill in box or i need script. Will script regenerate weapons since those weapons are not in script or i have to added them which one i want to refill.I meant on top 2 links Can i change amount of weapons not like remove weapons but increase number for example: weapons are set to 2 each, magazines 16 so id like to set 10 weapons each and 100 magazines each, i had some ideas but they didnt work. Edited January 4, 2012 by AVIBIRD 1 Share this post Link to post Share on other sites