• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to knock back a unit ONLY using GUI triggers

Status
Not open for further replies.
Level 8
Joined
Oct 19, 2008
Messages
168
I no that you can knockback a unit using jass but i dont understand jass so can someone explain to me how to do it without jass???

Im making a ability so when a unit attacks you it blasts you back with special effects along the way


-Thanks
 
Generally, you have two triggers. One that activates the knockback with a variable, usually a boolean of sorts. You also have to store the unit you want knock backed into a variable. Then that turns on a trigger that is like

Event - Every .01 seconds in the game
Condition - If boolean is true
Action - Move Unit to position of Unit with offset -10.00 facing degrees

Then in your first trigger add a wait like
Wait - 10 seconds
then turn off that second trigger
the longer it waits the more it'll be knock backed

And then you can just add your special effect here, and then destroy it or if it's a looping effect, attach it to the feet and destroy it.

Just summed up because I currently don't have access to WE.
 
Status
Not open for further replies.
Back
Top