Jump to content
Sign in to follow this  
McKeewa

How to make crates respawn

Recommended Posts

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

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

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 by Keewa

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×