• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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