UO.CharPosZ

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

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

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

USE:

X = UO.CharPosZ

SAMPLECODE:

function finddist(nX,nY,nZ) 
  nX = math.abs(UO.CharPosX - nX)   
  nY = math.abs(UO.CharPosY - nY)
  nZ = math.abs(UO.CharPosY - nZ) 
  return math.max(nX, nY, nZ)   
end

EXPLAIN:

If you call the function and give x coord and y and z coord it will give you back the distance from your char to the given Position