Lua API
On this page

RawMotionState

Inherits from

Data related to the movement of the object sent from a client

Fields:

CommandListLength number

read only

Derived from flags. Sequence of the animation.

CurrentStyle MotionStance

Current stance. If not present, defaults to 0x3D (NonCombat)

Flags RawMotionFlags

read only

Derived from flags. Sequence of the animation.

ForwardCommand MotionCommand

Command for our forward movement. If not present, defaults to 0x03 (Ready)

ForwardHoldkey number

Whether forward key is being held

ForwardSpeed number

Forward movement speed. If not present, defaults to 1.0

PackedFlags number

Command ID

SidestepCommand MotionCommand

Command for our sidestep movememnt. If not present, defaults to 0x00

SidestepHoldkey number

Whether sidestep key is being held

SidestepSpeed number

Sidestep movement speed. If not present, defaults to 1.0

TurnCommand MotionCommand

Command for our turn movememnt. If not present, defaults to 0x00

TurnHoldkey number

Whether turn key is being held

TurnSpeed number

Turn movement speed. If not present, defaults to 1.0

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