[Trigger] Zombie Spawn Trigger

Status
Not open for further replies.
Level 4
Joined
Jun 27, 2010
Messages
70
My friend did the triggers but still isn't working how i like it to.

Basically when a unit(of one type of specific unit) enters the graveyard(region) an walks across in that region a zombie spawns at unit position every second. All that works but the problems I see is:

-There are 5 same units and if 1 goes in it then all 5 units have zombies spawning next to them which only suppose to happen to the unit going into the graveyard now all 5 of them.

-when that unit leaves the region the zombie spawn for them stops

To bring it all together. If I were putting this in a game and there were 5 players and only 1 player goes into the graveyard. Then it starts the zombie spawn for all 5. Suppose to happen only to the unit going in, and if that unit leaves graveyard to other side then the zombie spawn of the position of unit stops.

I'll be attaching the map file in this post.

P.S Im not good on explaining so if theres something u dont understand just tell me. Thanks!
 

Attachments

Awesome everything works well except one thing. When the unit dies in the grave the zombies keep spawning after death which I don't want. Possible to fix?
 
Oh I get you! You can add a trigger, A generic unit dies, check if the unit is in the unit group if so remove it from the group this should solve it I think. If it doesn't however you need to set the Integer I added to the number of units in region matching conditions, you can make it so the matching unit is alive = true, unit type of matching unit not equal to zombie and so on....
 
Ok I think I got it to work now base from the instructions you gave me. For now it works. Thank You very much for the help!! +rep to you both ^_^
 
Status
Not open for further replies.
Back
Top