Difference between revisions of "UO.CharPosX"

From OpenEUO
Jump to: navigation, search
(Created page with "== UO.CharPosX == This is be used to get the X Position of your Char. USE: X = UO.CharPosX SAMPLECODE: function finddist(nX,nY) nX = math.abs(UO.CharPosX - nX) ...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== UO.CharPosX ==
+
This is be used to get the X Position of your character in game world coordinates.  
 
+
This is be used to get the X Position of your Char.  
+
  
 
USE:
 
USE:
Line 22: Line 20:
  
 
(mindi)
 
(mindi)
 +
 +
[[UO.CharDir]]
 +
 +
[[UO.CharPosY]]
 +
 +
[[UO.CharPosZ]]
 +
 +
[[UO.CursKind]]
 +
 +
[[UO.Shard]]

Latest revision as of 10:48, 9 October 2010

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

USE:

X = UO.CharPosX

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)

UO.CharDir

UO.CharPosY

UO.CharPosZ

UO.CursKind

UO.Shard