HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

specific unit respawns at specific region?

12-24-2003, 07:23 AM#1
Darth_Bob
I know how to make them respawn at certain locations based on player, but this is baffling me. Any player could have any one of the units, but each unit must respawn at a certain region when they die no matter what player is controlling it.
12-24-2003, 07:27 AM#2
SpectreReturns
Set the custom value of each unit to a number. Each unit must have a different custom value.

Create a region array, and set the region corresponding with the unit the same array number as his custom value.

Now when he dies, tell him to be respawned at "RegionArray[Custom Value of (Dying Unit)]"


There you go, nothing to it. :)
12-24-2003, 08:14 AM#3
Darth_Bob
Just when I thought I was getting good at this...emote_confused

How do you set a custom value and what on earth is a region array?
12-24-2003, 10:37 PM#4
Darth_Bob
???????????????????????emote_confused
12-24-2003, 10:47 PM#5
Arohk
region array is a variable of a region whit array (array mean you can set the variable to more then 1 value)

example: you have 3 regions (reg1,reg2 and reg3) and 1 region array(reg array)

now make a trigger and use set-variable,
set <reg array>[1] = reg1
set <reg array>[2] = reg2
set <reg array>[3] = reg3

next time you want use a region of them you can use the varriable whit the number of the region you set and dont need to choose the region again