View Single Post
  #1  
Old 04-16-2006, 10:14 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Setting variables when a player enters a level

Alright.. I have a ladder NPC.
When the player enters the level, I want each ladder to tell the player where it is. A system handles climbing, based on this information.

When the player enters the level, it adds the ladder's ID to one array (ladders) and it adds the ladder's area to another array (ladder#).

When the player enters, the system clears the ladders, so old ladder placements aren't carried into the level.


However, the ladder ID array is randomly being erased. I'm guessing it's by the clearing of ladders when the player enters.
I tried making it set the ladder ID array after .5 seconds, but it still doesn't work.
The ladders array just randomly clears itself; if I update the level or relog, it works. However, like I said, after a while it clears itself for no reason.

Any ideas?
Reply With Quote