- Joined
- Oct 2, 2006
- Messages
- 1,316
How can I make a an event of a generic unit take damage?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Trigger

Events


Unit - A unit Is attacked

Conditions

Actions


Unit - Cause (Attacking unit) to damage (Attacked unit), dealing damage damage of attack type Normal and damage type Normal
Events:
Unit - Generic Unit Takes damage.
Actions:
My Actions
It IS possible in GUI, it will just leak
Add Damage Trig

Events


Unit - A unit enters (Playable map area)

Conditions


<<Conditions>>

Actions


Trigger - Add to Damage Trig <gen> the event (Unit - (Entering unit) Takes damage)
Add Damage Trig 2

Events


Time - Every 5.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)



Loop - Actions




Trigger - Add to Damage Trig <gen> the event (Unit - (Entering unit) Takes damage)
Damage Trig

Events

Conditions

Actions


Unit - Kill (Damage source)
The events last forever. Also, that group there is leaking. Finally, you're getting multiple events for the same units.
He means that everytime a unit enters the region a new event will be created(an event is also an object that has to be removed!)
It will leak the hell outta your ass using that trigger(especielly if the group leaks arent fixed)
Just use shadow1500's which PP just linked, it is easy to use and jass knowledge isn't really neccesary to implement it.