🏆 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!
🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!
Makes the user of the spell blinks to his enemy and knockback it.
[trigger=]
Blink Knockback
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Dash Assault
Actions
Set BK_Cast = (Triggering unit)
Set BK_Target = (Target unit of ability being cast)
Set BK_TargPoint = (Position of BK_Target)
Set BK_CastFace = (Facing of BK_Cast)
Set BK_TargBack = (BK_TargPoint offset by 50.00 towards BK_CastFace degrees)
Set BK_LoopCounter = 0
Unit - Move BK_Cast instantly to BK_TargBack
Unit - Make BK_Cast face BK_Target over 0.01 seconds
Custom script: call RemoveLocation(udg_BK_TargPoint)
Trigger - Turn on BK loop <gen>
[/trigger]
[trigger=]
BK loop
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set BK_CastPoint = (Position of BK_Cast)
Set BK_TargPoint = (Position of BK_Target)
Set BK_Angle = (BK_TargPoint offset by 5.00 towards (Angle from BK_CastPoint to BK_TargPoint) degrees)
Unit - Move BK_Target instantly to BK_Angle
Unit - Cause BK_Cast to damage BK_Target, dealing 10.00 damage of attack type Chaos and damage type Normal
Special Effect - Create a special effect at BK_Angle using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_BK_CastPoint)
Custom script: call RemoveLocation(udg_BK_TargPoint)
Custom script: call RemoveLocation(udg_BK_Angle)
Set BK_LoopCounter = (BK_LoopCounter + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BK_LoopCounter Greater than 50
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
I think I saw this before but forgot where it is.
- First of all, it's not MUI. Try learning either [GUI] Dynamic Indexing Template or GUI Unit Indexer 1.2.0.2
- Besides, you should you use every 0.03 seconds instead of 0.02 seconds. That's the fastest the trigger can run I think.
- The knockback is not smooth enough as you didn't add in any deceleration, etc.
- you don't need the BK_LoopCounter to count the knockback anyway, you should use distance to check for easy configuration
- too simple
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.