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

[Solved] How to know X/Y position of a unit?

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Hi!

I'm using a system that uses this function:
JASS:
    function AddEffectInDialog takes string sfx, real x, real y returns nothing
    //adds a special effect on the ground

But I don't know how to set de X and Y of a UnitVariable (udg_u)

JASS:
call AddEffectInDialog(Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl, X of udg_A, Y of udg_A)
 
Status
Not open for further replies.
Top