Class: move
Movement action for stalkers, monsters, and vehicles.
Source
C++ class move
Custom Constructor
move
Remarks
The overload family is split between generic movement goals, vehicle input flags, and monster-only movement actions. Use the constructor group that matches the object receiving the resulting entity_action.
Extends
Constructors
Constructor
new move(): move;Create an empty movement action.
Returns
move
Overrides
Constructor
new move(action: number): move;Create a vehicle input action.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | number | Input key id. |
Returns
move
Remarks
Uses move input-key flags such as fwd, back, left, right, handbrake, on, and off.
Overrides
EngineBinding.constructorConstructor
new move(action: number, value: number): move;Create a timed vehicle input action.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | number | Input key id. |
value | number | Action duration or value. |
Returns
move
Remarks
Uses move input-key flags. The time value limits how long the input action remains active.
Overrides
EngineBinding.constructorConstructor
new move(
bodyState: TXR_body_state,
movementType: TXR_movement_type,
pathType: TXR_detail_path_type,
game_object: game_object): move;Move toward an object with explicit body, movement, and path modes.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
movementType | TXR_movement_type | Movement type id. |
pathType | TXR_detail_path_type | Detail path type id. |
game_object | game_object | Target object. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(
bodyState: TXR_body_state,
movementType: TXR_movement_type,
pathType: TXR_detail_path_type,
game_object: game_object,
value: number): move;Move toward an object with a speed value.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
movementType | TXR_movement_type | Movement type id. |
pathType | TXR_detail_path_type | Detail path type id. |
game_object | game_object | Target object. |
value | number | Speed or distance value. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(
bodyState: TXR_body_state,
movementType: TXR_movement_type,
pathType: TXR_detail_path_type,
patrol: patrol): move;Move along a patrol path.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
movementType | TXR_movement_type | Movement type id. |
pathType | TXR_detail_path_type | Detail path type id. |
patrol | patrol | Patrol path parameters. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(
bodyState: TXR_body_state,
movementType: TXR_movement_type,
pathType: TXR_detail_path_type,
patrol: patrol,
value: number): move;Move along a patrol path with a speed value.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
movementType | TXR_movement_type | Movement type id. |
pathType | TXR_detail_path_type | Detail path type id. |
patrol | patrol | Patrol path parameters. |
value | number | Speed or distance value. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(
bodyState: TXR_body_state,
movementType: TXR_movement_type,
pathType: TXR_detail_path_type,
vector: vector): move;Move toward a position.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
movementType | TXR_movement_type | Movement type id. |
pathType | TXR_detail_path_type | Detail path type id. |
vector | vector | Target position. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(
bodyState: TXR_body_state,
movementType: TXR_movement_type,
pathType: TXR_detail_path_type,
vector: vector,
value: number): move;Move toward a position with a speed value.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
movementType | TXR_movement_type | Movement type id. |
pathType | TXR_detail_path_type | Detail path type id. |
vector | vector | Target position. |
value | number | Speed or distance value. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(vector: vector, value: number): move;Move toward a position with distance.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Target position. |
value | number | Distance value. |
Returns
move
Overrides
EngineBinding.constructorConstructor
new move(moveAction: TXR_move, vector: vector): move;Create a monster movement action toward a position.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
vector | vector | Target position. |
Returns
move
Remarks
Monster-only overload using MonsterSpace::EScriptMonsterMoveAction values exposed on move.
Overrides
EngineBinding.constructorConstructor
new move(moveAction: TXR_move, patrol: patrol): move;Create a monster movement action along a patrol path.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
patrol | patrol | Patrol path parameters. |
Returns
move
Remarks
Monster-only overload using MonsterSpace::EScriptMonsterMoveAction values exposed on move.
Overrides
EngineBinding.constructorConstructor
new move(moveAction: TXR_move, game_object: game_object): move;Create a monster movement action toward an object.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
game_object | game_object | Target object. |
Returns
move
Remarks
Monster-only overload using MonsterSpace::EScriptMonsterMoveAction values exposed on move.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
vector: vector,
value: number): move;Create a monster movement action toward a position with distance.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
vector | vector | Target position. |
value | number | Distance value. |
Returns
move
Remarks
Monster-only overload. The distance is the stop distance from the target.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
value: number,
vector: vector): move;Create a monster movement action toward a position from a node id.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
value | number | Node or point id. |
vector | vector | Target position. |
Returns
move
Remarks
Monster-only overload. The node id lets the engine build the movement goal from a known level graph point.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
value: number,
vector: vector,
value2: number): move;Create a monster movement action toward a position from a node id with distance.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
value | number | Node or point id. |
vector | vector | Target position. |
value2 | number | Distance value. |
Returns
move
Remarks
Monster-only overload. The final value is the stop distance from the target.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
patrol: patrol,
value: number): move;Create a monster movement action along a patrol path with distance.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
patrol | patrol | Patrol path parameters. |
value | number | Distance value. |
Returns
move
Remarks
Monster-only overload. The distance is the stop distance from the patrol target.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
game_object: game_object,
value: number): move;Create a monster movement action toward an object with distance.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
game_object | game_object | Target object. |
value | number | Distance value. |
Returns
move
Remarks
Monster-only overload. The distance is the stop distance from the target object.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
vector: vector,
value: number,
speedParam: number): move;Create a monster movement action toward a position with speed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
vector | vector | Target position. |
value | number | Distance value. |
speedParam | number | Speed parameter id. |
Returns
move
Remarks
Monster-only overload. speedParam is a MonsterSpace::EScriptMonsterSpeedParam value.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
patrol: patrol,
value: number,
speedParam: number): move;Create a monster movement action along a patrol path with speed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
patrol | patrol | Patrol path parameters. |
value | number | Distance value. |
speedParam | number | Speed parameter id. |
Returns
move
Remarks
Monster-only overload. speedParam is a MonsterSpace::EScriptMonsterSpeedParam value.
Overrides
EngineBinding.constructorConstructor
new move(
moveAction: TXR_move,
game_object: game_object,
value: number,
speedParam: number): move;Create a monster movement action toward an object with speed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
moveAction | TXR_move | Monster movement action id. |
game_object | game_object | Target object. |
value | number | Distance value. |
speedParam | number | Speed parameter id. |
Returns
move
Remarks
Monster-only overload. speedParam is a MonsterSpace::EScriptMonsterSpeedParam value.
Overrides
EngineBinding.constructorMethods
body()
body(bodyState: TXR_body_state): void;Set body state.
Parameters
| Parameter | Type | Description |
|---|---|---|
bodyState | TXR_body_state | Body state id. |
Returns
void
completed()
completed(): boolean;Returns
boolean
Whether the movement action is complete.
input()
input(inputKey: number): void;Set input key action.
Parameters
| Parameter | Type | Description |
|---|---|---|
inputKey | number | Input key id. |
Returns
void
move()
move(movementType: TXR_movement_type): void;Set movement type.
Parameters
| Parameter | Type | Description |
|---|---|---|
movementType | TXR_movement_type | Movement type id. |
Returns
void
object()
object(game_object: game_object): void;Set target object.
Parameters
| Parameter | Type | Description |
|---|---|---|
game_object | game_object | Target object. |
Returns
void
path()
path(pathType: TXR_detail_path_type): void;Set detail path type.
Parameters
| Parameter | Type | Description |
|---|---|---|
pathType | TXR_detail_path_type | Detail path type id. |
Returns
void
patrol()
patrol(patrolPath: CPatrolPath, path_name: string): void;Set patrol path from a native patrol path pointer.
Parameters
| Parameter | Type | Description |
|---|---|---|
patrolPath | CPatrolPath | Internal native patrol path handle. |
path_name | string | Patrol path name copied into the movement action. |
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.
position()
position(vector: vector): void;Set target position.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Target position. |
Returns
void
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
readonly static __name: string;LuaBind class constructor name.
Inherited from
back
readonly static back: 4;Engine enum value for move.back.
criteria
readonly static criteria: 2;Engine enum value for move.criteria.
crouch
readonly static crouch: 0;Engine enum value for move.crouch.
curve
readonly static curve: 0;Engine enum value for move.curve.
curve_criteria
readonly static curve_criteria: 2;Engine enum value for move.curve_criteria.
default
readonly static default: 0;Engine enum value for move.default.
dodge
readonly static dodge: 1;Engine enum value for move.dodge.
down
readonly static down: 64;Engine enum value for move.down.
drag
readonly static drag: 3;Engine enum value for move.drag.
force
readonly static force: 1;Engine enum value for move.force.
fwd
readonly static fwd: 2;Engine enum value for move.fwd.
handbrake
readonly static handbrake: 128;Engine enum value for move.handbrake.
jump
readonly static jump: 4;Engine enum value for move.jump.
left
readonly static left: 8;Engine enum value for move.left.
line
readonly static line: 0;Engine enum value for move.line.
none
readonly static none: 1;Engine enum value for move.none.
off
readonly static off: 512;Engine enum value for move.off.
on
readonly static on: 256;Engine enum value for move.on.
right
readonly static right: 16;Engine enum value for move.right.
run
readonly static run: 1;Fast run movement type, not sprint but generic fast movement.
run_fwd
readonly static run_fwd: 2;Engine enum value for move.run_fwd.
run_with_leader
readonly static run_with_leader: 7;Engine enum value for move.run_with_leader.
stand
readonly static stand: 2;Engine enum value for move.stand.
standing
readonly static standing: 1;Engine enum value for move.standing.
steal
readonly static steal: 5;Engine enum value for move.steal.
up
readonly static up: 32;Engine enum value for move.up.
walk
readonly static walk: 0;Normal walk movement type, generic movement type used in most cases.
walk_bkwd
readonly static walk_bkwd: 1;Engine enum value for move.walk_bkwd.
walk_fwd
readonly static walk_fwd: 0;Engine enum value for move.walk_fwd.
walk_with_leader
readonly static walk_with_leader: 6;Engine enum value for move.walk_with_leader.