• 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] Unit Enters area (damage)

Status
Not open for further replies.
Do you mean only if unit is in this region? If yes, you can create a UnitGroup variable "DamageGroup" and try ...

Event
A unit enters YourRegion
Condition
TriggeringUnit == Hero Equals True (if needed)
Action
Add TriggeringUnit to DamageGroup

DamageTrigger:
Event
Every 0.1 seconds
Action
Pick every unit in DamageGroup and decrease life by X
___________

Also you would need to create a trigger which removed the unit of DamageGroup if it leaves YourRegion.
 
Status
Not open for further replies.
Top