Pawn (Data Type)¶
- Table of contents
- Pawn (Data Type)
- Description
- Members
- Methods
- Notes
Description¶
This DataType includes all of the data available to ISXVG that is related to entities within the world.
Members¶
Me, PC, NPC, AggroNPC, Pet, MyPet, Group Member
Trainer, Merchant, Resource, Crafting Station, Corpse, Clickable, Attackable
Mailbox, Assembly Station, Taskmaster, Banker, Broker, Altar
Unknown
-
point3f
Location
- actor
ToActor
-
float
X
-
float
Y
-
float
Z
-
int
Level
-
int
Pitch
-
int
Yaw
-
int
Roll
-
float
Distance
- Note - this is in meters
-
float
TwoDemDistance
-
string
Gender
-
string
TrueGender
-
string
Race
-
int
CombatState
- Possible return values include 0=Not in combat, 1=In combat, 4=Getting ass kicked but not fighting back
-
int
GuildID
-
int
FactionID
-
float
Speed
-
float
MaxSpeed
-
bool
CanSeeMeIfInRange
-
bool
CanSeeMeIfStealthed
-
bool
IsDead
-
bool
IsStealthed
-
bool
IsLFG
-
bool
IsInOffensiveForm
-
bool
IsOutside
-
bool
IsIndoors
-
bool
IsAggro
- This datatype member indicates if the pawn is 'aggressive' (ie, the pawns attacks the player on sight.)
-
bool
IsStunned
-
bool
IsGroupMember
-
bool
IsInMyGroup
-
bool
CanFly
-
bool
CanSwim
-
string
Posture
- Possible return values include:
crawling, crouching, running, walking, UNKNOWN
.
- Possible return values include:
walking
-
int
CullDistance
-
float
HeadingTo
- The heading YOU would take to reach the pawn
-
float
Heading
- The heading that the pawn is currently facing and/or heading
-
bool
IsAttackable
-
bool
IsClickable
-
bool
IsHarvestable
-
bool
IsAPet
-
bool
HaveLineOfSightTo
- pawn,int64
Owner
- Return's a pawn object if ISXVG is sure who the owner is, otherwise it returns the ID# of the owner as an int64 type. If the player's group has ownership it will return a pawn object of the current player. If this does not (exist), then the pawn has no owner. Please note that ALL pawns can have an 'owner'.
-
bool
OwnedByMe
- Note: Works for ANY type pawn
-
bool
HasQuestFlag
- Has a quest 'flag' over its head
-
string
QuestFlagColor
- Green, Yellow, Blue, Red, or None
-
bool
ContainsLoot
- This works for corpses that have the "I have loot" glittery particle effect as well as all 'resource' corpses.
-
string
Title
-
string
TitlePre
-
string
TitlePost
-
int
PVPPoints
-
bool
AutoFollowOn
- you always follow your defensive target
- actor
CheckCollision
- Checks for a collision between your current location and the pawn. See similar members in vg data type for more details on return values, etc.
- actor
CheckCollision[FromX,FromY,FromZ]
- Use this version if you need to check collision from another point other than your current location.
Methods¶
Face
Target
-
Loot
- Corpses only
-
LootAll
- Corpses only
-
DoubleClick
- This method works for the following pawn types: Banker, Broker, Taskmaster, Merchant, Trainer, QuestNPC, Corpse, Mailbox, Crafting Station, and Resource
Notes¶
The actor TLO and data type are used to get information about any/all objects in the game world. This is different from the pawn TLO and data type, which is generally used to get information about interactive objects in the game world. All pawn objects are also actor objects, but not all actor objects are pawn objects. This is why the ToPawn
member of the actor object can return a NULL, but the ToActor
member of the pawn object should always return a valid actor object.