How can I make a unit shot and walk at the same time?

Status
Not open for further replies.
Not possible.

What you can do is simulate movement through
JASS:
call SetUnitX(unit, real)
call SetUnitY(unit, real)

Using those 2 functions moves the unit instantly (similar to a slide trigger) while not interrupting its orders (i.e. attacking)

Hmmm...Could you explain how can i transform your call... in a trigger?Because i can't undestand it.:confused:
 
Barrage? WTF it fires when the unit fires.

Pheonix Fire? Did you see a homing laser shooting in whatever direction it wants?

About the seperate X and Y replacement. It WILL work.
But how exactly do we have to type the unit variable? It is some ID or what?
 
It's a variable of type unit.
Example:
JASS:
local unit u=GetLastCreatedUnit()

Real value --> Sets the oposition of variable unit (X coordinate)
JASS:
call SetUnitX(u, real)

Real value --> Sets the oposition of variable unit (Y coordinate)
JASS:
call SetUnitY(u, real)
 
You also can create dummy unit with the same attack as main and move this dummy with SetUnitX(u,x), SetUnitY(u,y) functions to position of main unit every 0.1 seconds (as example).
 
Status
Not open for further replies.
Back
Top