Difference between revisions of "UO.CharPosY"
From OpenEUO
Line 1: | Line 1: | ||
− | This is be used to get the Y Position of your | + | This is be used to get the Y Position of your character in game world coordinates. |
USE: | USE: | ||
Line 20: | Line 20: | ||
(mindi) | (mindi) | ||
+ | |||
+ | [[UO.CharPosX]] | ||
+ | |||
+ | [[UO.CharPosZ]] | ||
+ | |||
+ | [[UO.CursKind]] |
Revision as of 10:45, 9 October 2010
This is be used to get the Y Position of your character in game world coordinates.
USE:
X = UO.CharPosY
SAMPLECODE:
function finddist(nX,nY) nX = math.abs(UO.CharPosX - nX) nY = math.abs(UO.CharPosY - nY) return math.max(nX, nY) end
EXPLAIN:
If you call the function and give x coord and y coord it will give you back the distance from your char to the given Position
(mindi)