Lua API
On this page

PositionPack

Inherits from

A position with sequences

Fields:

ObjectForcePositionSequence number

The forced position sequence value for the object

ObjectInstanceSequence number

The instance sequence value for the object (number of logins for players)

ObjectPositionSequence number

The position sequence value for the object

ObjectTeleportSequence number

The teleport sequence value for the object

Origin Origin

the location of the object in the world

Velocity Vector3

The objects current velocity

WQuat number

The objects orientation quaternion W value

XQuat number

The objects orientation quaternion X value

YQuat number

The objects orientation quaternion Y value

ZQuat number

The objects orientation quaternion X value

Methods:

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string