HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

timer (i think) trigger)

09-04-2003, 07:18 PM#1
35263526
On my RPG map I have an area where NPC wizards go and study periodically. What I want to be able to do is that when a wizard enters the area, it starts timing the amount of time he's in there and enters it into a real variable.
I can do this for one wizard but I dont know how to do it if more than one is in the area at the same time.
09-04-2003, 07:31 PM#2
Pesmerga
Use the same variable but make it an array.
09-04-2003, 07:33 PM#3
35263526
How do I identify each unit in the array. You can't use unit IDs (grumble grumble)
09-04-2003, 07:48 PM#4
Pesmerga
I would make an interger variable (not array) called WizardCount. Then when you go to set your array, do Set wiztime equal WizardCount. When a wizard enters the region, set WizardCount = wizardcount +1. And when he leaves the region, subtract 1.