McKeewa 7 Posted April 1, 2013 Hi there, I have and issue with crates. We run a persistant map on a dedicated server and we added the excelente "NV and Therm optics mod" http://www.armaholic.com/page.php?id=19831 This mod doesn't work with the excelent "Virtual Ammo Box" mod, why not. I put a custom crate with all the optics I need, but, for no reason, after a few hours, the optics crate stop working, making us unable to open it, that is really annoying when night fall. So i'm looking for a way to make the crate viable, or, simply, make the possibility to make it respawnable through a trigger, a timer or something. Thx for reading me. Have a good day. Keewa Share this post Link to post Share on other sites
Tuliq 2 Posted April 1, 2013 Hey guy! Provide the code of your crate so we can see what's up please. Share this post Link to post Share on other sites
McKeewa 7 Posted April 1, 2013 (edited) Simply in the init : null = [this] execVM "optics.sqf"; in the sqf _c = _this select 0; _c addItemCargo ["UU_NV_H_Optic", 50]; _c addItemCargo ["UU_NV_A_Optic", 50]; _c addItemCargo ["UU_TSW_H_Optic", 50]; _c addItemCargo ["UU_TSW_A_Optic", 50]; _c addItemCargo ["UU_TSG_H_Optic", 50]; _c addItemCargo ["UU_TSR_A_Optic", 50]; _c addItemCargo ["UU_TSS_H_Optic", 50]; _c addItemCargo ["UU_TSS_A_Optic", 50]; Actually, the previous lines are currently placed directly in the init field. I didn't tried the "execvm" style on the dedicated. Thx for your reponse. Edited April 1, 2013 by Keewa Share this post Link to post Share on other sites
killzone_kid 1327 Posted April 1, 2013 maybe you need addItemCargoGlobal Share this post Link to post Share on other sites
McKeewa 7 Posted April 2, 2013 What is the effect compared to the additemcargo ? BI wiki is not really specific : https://community.bistudio.com/wiki/addItemCargoGlobal Share this post Link to post Share on other sites