• 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.

[General] <Area> contains (Triggering Unit) does not work

Status
Not open for further replies.
Level 12
Joined
Jan 13, 2008
Messages
559
Hello,
I want to trigger an action as soon as a hero dies in a certain place. The trigger:

Event: A unit dies
Condition: <Area> contains (Triggering Unit) Equal to True
Action: Display to (All players) the text: test

The hero is definitely dying in the area so what's wrong?
 
Level 19
Joined
Jul 2, 2011
Messages
2,161
Hello,
I want to trigger an action as soon as a hero dies in a certain place. The trigger:

Event: A unit dies
Condition: <Area> contains (Triggering Unit) Equal to True
Action: Display to (All players) the text: test

The hero is definitely dying in the area so what's wrong?
maybe you have the wrong area?

or maybe you should change triggering unit to dying unit(that that shouldn't really be the problem)
 
Level 12
Joined
Jan 13, 2008
Messages
559
maybe you have the wrong area?

or maybe you should change triggering unit to dying unit(that that shouldn't really be the problem)

No, like I already wrote. I don't have the wrong area.

  • Playerdeaths Level 1
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Level 1 Area <gen> contains (Dying unit)) Equal to True
    • Actions
      • Game - Display to (All players) the text: debug
It works with any other area but not with the one I want.

/edit: I did some testing: It works when I move the region more to the left (LOL). This is complete bullshit again and a new bug but whatever.

/edit2: Deleting and creating a new region has the same effect. For some reason it doesn't work where the region is placed.

/edit3: Imgur: The most awesome images on the Internet the right region is "Level 1 Area". When I move the area to the left, where the other region is, it works. I can also remove the other region and it still works.

/edit4: I tried to make the region very small, because maybe it's the size? but this also doesn't work. The region starts at x = 4800, y=5300 if this is important.
 
Last edited:
Level 8
Joined
Jan 28, 2016
Messages
486
This might be a stretch but with regards to moving the region a touch to the left, it may have something to do with this: Accurate movement between waypoints/ regions (4 bugs you should be aware of).

I replicated your above trigger and the only time it didn't work for me was when my hero died in the region. I soon discovered that this was caused by the hero being instantly revived and moved to another point in the map; I disabled the revive trigger and it worked as expected. I'm not sure if this is applicable to your problem but it might be one less issue to deal with. ¯\_(ツ)_/¯
 
Level 12
Joined
Jan 13, 2008
Messages
559
This might be a stretch but with regards to moving the region a touch to the left, it may have something to do with this: Accurate movement between waypoints/ regions (4 bugs you should be aware of).

I replicated your above trigger and the only time it didn't work for me was when my hero died in the region. I soon discovered that this was caused by the hero being instantly revived and moved to another point in the map; I disabled the revive trigger and it worked as expected. I'm not sure if this is applicable to your problem but it might be one less issue to deal with. ¯\_(ツ)_/¯
Ugh...that was the problem. Thanks for the help.
 
Status
Not open for further replies.
Top