UO.CharPosY

From OpenEUO
Revision as of 08:29, 5 October 2010 by 83.216.243.101 (Talk) (Created page with "== UO.CharPosY == This is be used to get the Y Position of your Char. USE: X = UO.CharPosY SAMPLECODE: function finddist(nX,nY) nX = math.abs(UO.CharPosX - nX) ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

UO.CharPosY

This is be used to get the Y Position of your Char.

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)