Skip to content

Class: MockMove

Mock move actions class.

Implements

  • move

Constructors

Constructor

ts
new MockMove(...args: unknown[]): MockMove;

Parameters

ParameterType
...argsunknown[]

Returns

MockMove

Methods

body()

ts
body(bodyState: TXR_body_state): void;

Set body state.

Parameters

ParameterTypeDescription
bodyStateTXR_body_stateBody state id.

Returns

void

Implementation of

ts
move.body

completed()

ts
completed(): boolean;

Returns

boolean

Whether the movement action is complete.

Implementation of

ts
move.completed

input()

ts
input(inputKey: number): void;

Set input key action.

Parameters

ParameterTypeDescription
inputKeynumberInput key id.

Returns

void

Implementation of

ts
move.input

move()

ts
move(movementType: TXR_movement_type): void;

Set movement type.

Parameters

ParameterTypeDescription
movementTypeTXR_movement_typeMovement type id.

Returns

void

Implementation of

ts
move.move

object()

ts
object(gameObject: game_object): void;

Set target object.

Parameters

ParameterType
gameObjectgame_object

Returns

void

Implementation of

ts
move.object

path()

ts
path(pathType: TXR_detail_path_type): void;

Set detail path type.

Parameters

ParameterTypeDescription
pathTypeTXR_detail_path_typeDetail path type id.

Returns

void

Implementation of

ts
move.path

patrol()

ts
patrol(patrolPath: CPatrolPath, pathName: string): void;

Set patrol path from a native patrol path pointer.

Parameters

ParameterTypeDescription
patrolPathCPatrolPathInternal native patrol path handle.
pathNamestring-

Returns

void

Source

src/xrGame/script_movement_action_script.cpp, move.patrol binding.

Remarks

This low-level binding expects an internal CPatrolPath*, not the public patrol parameter object. Prefer the movement action constructors that accept patrol unless native code passes a raw patrol path pointer.

Implementation of

ts
move.patrol

position()

ts
position(vector: vector): void;

Set target position.

Parameters

ParameterTypeDescription
vectorvectorTarget position.

Returns

void

Implementation of

ts
move.position

create()

ts
static create(...args: unknown[]): MockMove;

Parameters

ParameterType
...argsunknown[]

Returns

MockMove


mock()

ts
static mock(...args: unknown[]): move;

Parameters

ParameterType
...argsunknown[]

Returns

move

Properties

__name

ts
__name: string = "move";

LuaBind instance constructor name.

Implementation of

ts
move.__name

args

ts
args: unknown[];

bodyState

ts
bodyState: TXR_body_state | null = null;

inputKey

ts
inputKey: number | null = null;

isCompleted

ts
isCompleted: boolean = false;

movementType

ts
movementType: TXR_movement_type | null = null;

pathType

ts
pathType: TXR_detail_path_type | null = null;

patrolName

ts
patrolName: string | null = null;

patrolPath

ts
patrolPath: CPatrolPath | null = null;

targetObject

ts
targetObject: game_object | null = null;

targetPosition

ts
targetPosition: vector | null = null;

back

ts
readonly static back: 4;

Engine enum value for move.back.


criteria

ts
readonly static criteria: 2;

Engine enum value for move.criteria.


crouch

ts
readonly static crouch: 0;

Engine enum value for move.crouch.


curve

ts
readonly static curve: 0;

Engine enum value for move.curve.


curve_criteria

ts
readonly static curve_criteria: 2;

Engine enum value for move.curve_criteria.


default

ts
readonly static default: 0;

Engine enum value for move.default.


dodge

ts
readonly static dodge: 1;

Engine enum value for move.dodge.


down

ts
readonly static down: 64;

Engine enum value for move.down.


drag

ts
readonly static drag: 3;

Engine enum value for move.drag.


force

ts
readonly static force: 1;

Engine enum value for move.force.


fwd

ts
readonly static fwd: 2;

Engine enum value for move.fwd.


handbrake

ts
readonly static handbrake: 128;

Engine enum value for move.handbrake.


jump

ts
readonly static jump: 4;

Engine enum value for move.jump.


left

ts
readonly static left: 8;

Engine enum value for move.left.


line

ts
readonly static line: 0;

Engine enum value for move.line.


none

ts
readonly static none: 1;

Engine enum value for move.none.


off

ts
readonly static off: 512;

Engine enum value for move.off.


on

ts
readonly static on: 256;

Engine enum value for move.on.


ts
readonly static right: 16;

Engine enum value for move.right.


run

ts
readonly static run: 1;

Fast run movement type, not sprint but generic fast movement.


run_fwd

ts
readonly static run_fwd: 2;

Engine enum value for move.run_fwd.


run_with_leader

ts
readonly static run_with_leader: 7;

Engine enum value for move.run_with_leader.


stand

ts
readonly static stand: 2;

Engine enum value for move.stand.


standing

ts
readonly static standing: 1;

Engine enum value for move.standing.


steal

ts
readonly static steal: 5;

Engine enum value for move.steal.


up

ts
readonly static up: 32;

Engine enum value for move.up.


walk

ts
readonly static walk: 0;

Normal walk movement type, generic movement type used in most cases.


walk_bkwd

ts
readonly static walk_bkwd: 1;

Engine enum value for move.walk_bkwd.


walk_fwd

ts
readonly static walk_fwd: 0;

Engine enum value for move.walk_fwd.


walk_with_leader

ts
readonly static walk_with_leader: 6;

Engine enum value for move.walk_with_leader.