trigger Help: everything looks good, but doesn't work....

Status
Not open for further replies.
Level 4
Joined
Apr 14, 2006
Messages
22
I'm asking if someone please could help me. I'm making a campaign and i have a small trigger problem. There's a part where an ally and an enemy are battling. If you don't appear they are going to stay there forever. That trigger works. I want the cinematic to start when those enemies are killed. I made this trigger:

Events: Unit - A unit dies

Conditions: (Number of units in (Units owned by player 3 (Teal))) Equal to 0

Actions: Trigger - Run SylvanasandKaelCinematic <gen> (Ignoring conditions)
Trigger - turn off (this trigger)

But it doesn't works. that enemy only has the units our allies are battling. Not even buildings. The cinematic trigger Isn't initially on.

Can anyone help me? :wink:
 
when a unit dies it isn't removed from the game until it decays completely, so you will have to count only the units owned by player 3 that are alive instead of every unit owned by player 3.

you might also want to assign that unit group to a variable to put a plug in that massive memory leak that will otherwise occur. :wink:
 
Status
Not open for further replies.
Back
Top