| 08-10-2002, 09:08 PM | #1 |
Guest | I'm trying to set up a trigger to respawn a unit after it dies. I would like to have a single trigger that is usable by all players. (I'm designing the map's triggers to support 1 to 12 players and I like efficiency.) Event: A unit leaves Playable map area. Condition: Unit-type of leaving unit == Steam Tank The trigger does not execute when a Tank dies. Does "unit leaves region" not apply when a unit dies? Or is there something else I might have missed? Will an entire trigger be ignored if there's a bad reference made in it somewhere? The first Action of my trigger in question is Display text to all players... How can I make the respawn trigger fire when any unit of a particular type, controlled by any player, dies? |
| 08-10-2002, 10:33 PM | #2 |
Guest | it just hit me that I could accomplish the "any unit dies" event by simply placing an event for "Unit owned by player 1 dies" for each player. I don't know why I didn't think of this sooner... I still wonder though, does "unit leaves region" not apply to unit death? |
| 08-11-2002, 12:37 AM | #3 |
Guest | "Unit enters region" and "Unit leaves region" are refering to movement, I guess. "Unit dies" works great for that purpose, however you have to use the 'variable' (or "preset") called "triggering unit" in the trigger or "owner of triggering unit" (for the player) if you want to use one trigger for multiple players and still have some effects restricted to the triggering player (eg. setting a text message to inform the player his unit died, but not having other people see it as well). |
| 08-11-2002, 12:57 AM | #4 |
Guest | BTW: Unit Enters Region will work for spawning.... I found that out in my Golems Map... |
