• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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