• 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.

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
 
Level 2
Joined
Apr 24, 2005
Messages
20
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.
Top