Skip to content

Class: MockLook

Mock of the X-Ray engine look action enumeration.

Implements

  • look

Constructors

Constructor

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

Parameters

ParameterType
...argsunknown[]

Returns

MockLook

Methods

bone()

ts
bone(boneId: string): void;

Set watched bone.

Parameters

ParameterType
boneIdstring

Returns

void

Implementation of

ts
look.bone

completed()

ts
completed(): boolean;

Returns

boolean

Whether the look action is complete.

Implementation of

ts
look.completed

direct()

ts
direct(vector: Readonly<vector>): void;

Set watched direction.

Parameters

ParameterTypeDescription
vectorReadonly<vector>Direction vector.

Returns

void

Implementation of

ts
look.direct

object()

ts
object(gameObject: game_object): void;

Set watched object.

Parameters

ParameterType
gameObjectgame_object

Returns

void

Implementation of

ts
look.object

type()

ts
type(sightType: TXR_SightType): void;

Set sight type.

Parameters

ParameterType
sightTypeTXR_SightType

Returns

void

Implementation of

ts
look.type

create()

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

Parameters

ParameterType
...argsunknown[]

Returns

MockLook


mock()

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

Parameters

ParameterType
...argsunknown[]

Returns

look

Properties

__name

ts
__name: string = "look";

LuaBind instance constructor name.

Implementation of

ts
look.__name

args

ts
args: unknown[];

boneId

ts
boneId: string | null = null;

direction

ts
direction: Readonly<vector> | null = null;

isCompleted

ts
isCompleted: boolean = false;

sightType

ts
sightType: TXR_SightType | null = null;

targetObject

ts
targetObject: game_object | null = null;

cur_dir

ts
readonly static cur_dir: 0;

Engine enum value for look.cur_dir.


danger

ts
readonly static danger: 5;

Engine enum value for look.danger.


direction

ts
readonly static direction: 2;

Engine enum value for look.direction.


fire_point

ts
readonly static fire_point: 10;

Engine enum value for look.fire_point.


path_dir

ts
readonly static path_dir: 1;

Engine enum value for look.path_dir.


point

ts
readonly static point: 3;

Engine enum value for look.point.


ts
readonly static search: 6;

Engine enum value for look.search.