• 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 can I make a unit shot and walk at the same time?

Status
Not open for further replies.
Level 5
Joined
Sep 3, 2008
Messages
74
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:
 
Level 5
Joined
May 23, 2008
Messages
148
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?
 
Level 9
Joined
Apr 3, 2008
Messages
700
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)
 
Level 1
Joined
Nov 20, 2007
Messages
1
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.
Top