HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

EVENT_UNIT_STATE_LIMIT ?

10-19-2008, 03:57 PM#1
Troll-Brain
Simple question, simple anwser ?
What the hell is this event ?

EDIT : We can use it with GetTriggerEventId to know if it's an event with TriggerRegisterUnitStateEvent (UNIT_STATE_MANA or UNIT_STATE_LIFE)
10-19-2008, 08:11 PM#2
Naakaloh
This event is detected when there is a change in the unit's life or mana.

If you want to have a unit gain more life when it's life falls below a certain value, this is the event you'd use.

Edit: The condition for which the value by which the life or mana has to fall below or rise above is provided in the parameters for the function when registering the event.
10-19-2008, 08:20 PM#3
Troll-Brain
As i said in the edit i know how to use this event, which is not a register event but an eventid.
10-19-2008, 08:25 PM#4
Naakaloh
Hmm... Perhaps I am misunderstanding your question.
10-19-2008, 08:30 PM#5
Troll-Brain
No, i had simply answer myself after few minutes i asked the question :p