HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help

10-27-2006, 01:54 PM#1
legend_tisman
im trying to find the (x,y) position of a unit but i cant seem to find how to get it
EX. a footman is on the map at (31,70)
1 how do i find this
2 can i use the x or y values separately/how
(Ex. set a variable to the x or y value)
thx in advance to people who try to help
ps im not very jass literate, ill still accept jass answers : )
10-27-2006, 02:01 PM#2
Thunder_Eye
GUI:
Trigger:
Set x = (X of (Position of (yourunit)))
Set y = (Y of (Position of (yourunit)))
JASS:
Collapse JASS:
local real x = GetUnitX(yourunit)
local real y = GetUnitY(yourunit)
10-27-2006, 02:23 PM#3
Captain Griffen
GUI you got there leaks two locations.
10-27-2006, 02:35 PM#4
Thunder_Eye
yeah but he only wanted the code to get the x/y, not how to clean leaks