HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Region variable with array...

07-31-2003, 06:27 AM#1
Katarina
How does the region variable work?

Particularily if I want to use it as an array?

How does it know which parts of the map belong to which player (if Im using player number as the array)..?
07-31-2003, 06:44 AM#2
Newhydra
The region variable is just a variable, you set it = to a specific region. To let it know which player "owns" which region you would need to set it up in a trigger somewhere (regionarray[1]=p1region; regionarray[2]=p2region ect)
07-31-2003, 06:49 AM#3
Katarina
Ah hah! thank you very very VERY much!
07-31-2003, 08:21 AM#4
LeprechaunNinja
Yep. And then if you want to refer to all players regions, then just pick all region and do RegionArrayVariable(PickedPlayer)

It's amazing, actually. Saved me an assload of time.