Well I want to created a unit (Hydralisk). When the hydralisk takes 80% of damage I want him to hide. The goal here is to make my unit disapear before it dies.
I did something like this for my project, the idea is to simply put a condition as this: ("YOUR UNIT" Life (Current) <= "20% of the maximum health of your unit") and in the actions, you put the show/hide unit trigger and there you go.
Example (in my map): if (Archon [31.97, 220.33] Life (Current)) <= 4500.0)
then (blabla...)
Hope this helped!
Cheers!
EDIT: for the 20% of your unit, for example, if your hydralisk has 100 base health, then your condition be as this: (Hydralisk Life (Current)) <= 20.0)
it doesn't work at all... can you be more precise please...
It goes like this:
Event: Unit - Hydralisk [133.27, 94.45] takes Fatal or Non-Fatal Any damage (from Any effects)
Condition: ((Unit type of Hydralisk [133.27, 94.45]) Life Starting Amount) <= 20.0
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
Then
Else
Unit - Hide Hydralisk [133.27, 94.45]
Thanks for the tips folks...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Thanks for the tips folks
Specific detail please. Also wrong place to post. Moved to general map development
Well I want to created a unit (Hydralisk). When the hydralisk takes 80% of damage I want him to hide. The goal here is to make my unit disapear before it dies.
I did something like this for my project, the idea is to simply put a condition as this: ("YOUR UNIT" Life (Current) <= "20% of the maximum health of your unit") and in the actions, you put the show/hide unit trigger and there you go.
Example (in my map): if (Archon [31.97, 220.33] Life (Current)) <= 4500.0) then (blabla...)
Hope this helped!
Cheers!
EDIT: for the 20% of your unit, for example, if your hydralisk has 100 base health, then your condition be as this: (Hydralisk Life (Current)) <= 20.0)
@dudegab666: Go
You can also use the data editor. Auto-casting burrow with a validator for life below 20%
it doesn't work at all... can you be more precise please... It goes like this: Event: Unit - Hydralisk [133.27, 94.45] takes Fatal or Non-Fatal Any damage (from Any effects) Condition: ((Unit type of Hydralisk [133.27, 94.45]) Life Starting Amount) <= 20.0 Actions General - If (Conditions) then do (Actions) else do (Actions) If Then Else Unit - Hide Hydralisk [133.27, 94.45] Thanks for the tips folks...