HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"Unit Dies Within Region" event?

02-26-2011, 04:00 AM#1
galinth
I am looking for a way to cancel a timer if the triggering unit either leaves a region, or is killed while in the region.. but I can't figure out how to cancel the timer if the triggering unit is killed within the region. please help!

here is the GUI data i have so far, for when a unit leaves the region (this one works fine)

Trigger:
Orc Leave Wipe
Collapse Events
Unit - A unit leaves BG Capture Circle <gen>
Collapse Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Collapse Actions
Countdown Timer - Destroy (Last created timer window)
Countdown Timer - Pause orcCAPtimer
02-26-2011, 04:06 AM#2
galinth
Nevermind.. Just finally figured it out, i'm a nub.

Trigger:
Orc Die Wipe
Collapse Events
Unit - A unit enters BG Capture Circle <gen>
Unit - A unit owned by Player 1 (Red) Dies
Collapse Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
((Triggering unit) is dead) Equal to True
Collapse Actions
Countdown Timer - Destroy (Last created timer window)
Countdown Timer - Pause orcCAPtimer
02-26-2011, 11:20 AM#3
Anitarf
Quote:
Originally Posted by galinth
Nevermind.. Just finally figured it out, i'm a nub.
That doesn't really seem correct, this would be more appropriate:

Trigger:
Orc Die Wipe
Collapse Events
Unit - A unit owned by Player 1 (Red) Dies
Collapse Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
((Triggering unit) is in (BG Capture Circle <gen>)) Equal to True
Collapse Actions
Countdown Timer - Destroy (Last created timer window)
Countdown Timer - Pause orcCAPtimer