is there any smarter way to have an event that fires whenever a unit is detected that also returns the player which detected the unit.
Currently the only thing i can come up with is an global ability that targets cloaked visible enemy units and using this ability as an event.
(Any unit is detected by any Player: triggering unit, triggering player)
You have the unit is detected event already. Toss that into your trigger. Or like joey is almost saying attach a region to that unit, and use the unit enters region event, and check to see if that unit has detector.
hi there,
is there any smarter way to have an event that fires whenever a unit is detected that also returns the player which detected the unit.
Currently the only thing i can come up with is an global ability that targets cloaked visible enemy units and using this ability as an event.
(Any unit is detected by any Player: triggering unit, triggering player)
@FunkyUserName: Go
Pick each player:
If unit is visible then:
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
but that wouldn't be event driven, i would need a loop where it is checked periodically, save status etc.
what about
(any unit) gets within range of <detection range> of <unit with detection behavior> ?
@FunkyUserName: Go
You have the unit is detected event already. Toss that into your trigger. Or like joey is almost saying attach a region to that unit, and use the unit enters region event, and check to see if that unit has detector.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)