Tree.GetPos

table Tree.GetPos ( 

string ObjectName )

Example 1

tPosition = Tree.GetPos("Tree1");

Gets the current X, Y coordinates of the "Tree1" tree object and stores the results in a table called "tPosition." These values can be accessed by referencing tPosition.X and tPosition.Y.

See also:  Related Actions