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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Feign Death.w3x
Variables
Initialization
Start FD
Stop FD
Constant FD
Assistance
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
FeignDeathHero
integer
No
This is what happens when the ability is cast.
Start FD
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Feign Death
Actions
Set Variable Set FeignDeathHero = (Integer((Life of (Casting unit))))
Unit - Make (Casting unit) Invulnerable
Animation - Play (Casting unit) 's death animation
Trigger - Turn on Constant_FD <gen>
Unit - Set life of (Casting unit) to 1.00
-------- Wait Time --------
Wait 2.33 seconds
-------- Wait Time --------
Animation - Change (Casting unit) 's animation speed to 0.00 % of its original speed
This is what happens when the abilty has stopped being cast.
Stop FD
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Feign Death
Actions
Unit - Make (Casting unit) Vulnerable
Animation - Change (Casting unit) 's animation speed to 100.00 % of its original speed
Animation - Play (Casting unit) 's stand animation
Trigger - Turn off Constant_FD <gen>
Unit - Set life of (Casting unit) to (Real(FeignDeathHero))
This is what happens while the ability is being cast.
Constant FD
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit - Set life of Feign Death Hero 0001 <gen> to 1.00
Possible animation problem help:
If you choose a diffrent model than the one I used it's most likely to have diffrent animation length.
The model I used has a Death animation with 3.233 seconds length.
I made it stop at 2.33 seconds but if you use another model look at it's Death's animation length and calculate how long the trigger has to wait.
For an example if you use a model with the death time 4.455 change the 'Wait 2.33 seconds' trigger to something closer like 4.44 seconds and the trigger should work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.