HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Read this if you use the "remove" unit trigger

06-01-2002, 04:37 AM#1
dataangel
Important note for people using the remove unit trigger: When the game "removes" a unit, it is infact HIDING IT with no reference. If you "remove" a unit, and then "unhide" all the units in the playable map area (for example), then although the unit will not seem to appear IT WILL STILL SET OFF TRIGGERS.

In my map I hide the player's hero, and then create a blademaster, and eventually remove the blademaster and add 20 lumber to the player's resources when the blademaster enters a certain location. I then did an "Unhide all units in playable map area" thinking that my hero was the only hidden unit. All of a sudden I had a very sick lumber supply ;)
06-01-2002, 05:53 AM#2
3DGuy
yeah me thinks thats true, blizzard did that on purpose.. but try to kill it instead if u like =)
06-02-2002, 05:04 AM#3
Guest
I think this piece of information is around the same thing too.

It is also something nice for ppl to know.

If you have a region that sets off when a certain number of units enter it. you might wanna consider this.

When a unit dies, it leaves a corpse, the game recognizes the corpse itself as a unit. so when ppl die in that region they are not technically out of the region until their corpse decays. This could really mess up ppl's trigger if they dont know about it.

A suggestion to get past the problem...make triggers to where any unit that enters the region do an action where they wont leave a corpse. What I did was make a trigger that said when a unit enters region make unit explode on death. Exploding leaves no corpse and its a much cooler death so therefor no problem :)