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

[JASS] Unit Move +REP

Status
Not open for further replies.
Level 17
Joined
Jun 28, 2008
Messages
776
I have seen in some spells that a unit is dragged to a target location. So iow the unit can still move, but it is dragged to a location. You can still order your unit to move left or right, but it still moves backward. My question, How?

I know it is done in JASS, but how? I use :

JASS:
call SetUnitPositionLoc(u, point1)

But then the unit just moves, no animation or anything.

I hope you can understand what I am trying to explain.

Thanks in advance.
 
Are you looking for a sliding or knockback function?

Try this: http://www.hiveworkshop.com/forums/jass-functions-413/knockback-unit-35545/

It requires NewGen World Editor however.

Anyway, that function just sets the unit to a specified location, instantaneously. If you want it to slide, you need to run a timer and move the unit inch by inch, making the impression that they are "sliding" to the location.

Just search for "sliding" functions, some should show up, even in GUI.
 
Status
Not open for further replies.
Top