• 🏆 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!

[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