• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
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:
 
Level 5
Joined
Jun 17, 2006
Messages
114
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.
Top