ISXWoW:object (Data Type)
From ISMods Wiki
Contents |
[edit]
Description
[edit]
Members
- string GUID
- Returns the GUID (Globally unique ID) for this object.
- string Name
- Returns the name of this object as it (should) display in the client.
- string Type
- Returns the name of this objects most strongly matched type. For instance, although a player is an object, and the activeplayer is a player, calling this on an object of type player will return "Player".
- int Fields
- Returns the int that represents a structure of various fields associated with the object data types. NOTE: Primarily for debugging, see Field below for more practical applications.
- int Field[<location>]
- Returns the data at <location> in the object structure. see WoWData.h enums for field numbers
- point3f Location
- Returns the objects location. This is not the same as the location returned by Cosmos.
echo My Location is ${Me.Location}
- float X
- Returns the X (East/West) portion of the objects location. This is not the same as the location returned by Cosmos.
- float Y
- Returns the Y (North/South) portion of the objects location. This is not the same as the location returned by Cosmos.
- float Z
- Returns the Z (altitude) portion of the objects location. This is not the same as the location returned by Cosmos.
- heading Heading
- Returns the direction the object is facing.
- heading HeadingTo[x,y]
- Returns the heading the object must face or travel to reach a certain location. Of limited use, see activeplayer datatype for a more practical use of HeadingTo.
- bool LineOfSight
- TRUE if player have line of sight to object
- float Distance
- Returns the distance to this object from the activeplayer object (i.e you)
[edit]
Methods
- Use
- Face
- FaceFast
- ClickTerrain: click terrain below object for target spell
[edit]
Returns
same as Name
[edit]
