Difference between revisions of "UO.CharPosZ"

From OpenEUO
Jump to: navigation, search
 
Line 16: Line 16:
  
 
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
 
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
 +
 +
[[UO.CharDir]]
  
 
[[UO.CharPosX]]
 
[[UO.CharPosX]]
Line 22: Line 24:
  
 
[[UO.CursKind]]
 
[[UO.CursKind]]
 +
 +
[[UO.Shard]]

Latest revision as of 11:49, 9 October 2010

This is be used to get the Y Position of your character in game world coordinates.

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

UO.CharDir

UO.CharPosX

UO.CharPosY

UO.CursKind

UO.Shard