OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: 24Gamer on 23 Jun 2004, 17:05:55

Title: Crates
Post by: 24Gamer on 23 Jun 2004, 17:05:55
I Have multiple crates on the map and sometimes the crates appear empty and yet other times the appear normal, and players sometimes have to wait a short period of time before the weapons reapear. why is this? (i don't think its my code), lag?
is there a solution?
Title: Re:Crates
Post by: 24Gamer on 23 Jun 2004, 20:50:41
anyone?
Title: Re:Crates
Post by: Terox on 24 Jun 2004, 00:34:10
If you are filling the crates via either the Init.sqs or a script run from the init.sqs, place a 1 second wait period before you load these crates.

Reason is, sometimes if there are a lot of units / objects placed on the map in the mission editor, it can be some time before the engine loads all these units into memory  from the mission.sqm and in some cases the init.sqs and other scripts can run commands on something that isnt seen as being there yet