Class: MockLook
Mock of the X-Ray engine look action enumeration.
Implements
look
Constructors
Constructor
ts
new MockLook(...args: unknown[]): MockLook;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockLook
Methods
bone()
ts
bone(boneId: string): void;Set watched bone.
Parameters
| Parameter | Type |
|---|---|
boneId | string |
Returns
void
Implementation of
ts
look.bonecompleted()
ts
completed(): boolean;Returns
boolean
Whether the look action is complete.
Implementation of
ts
look.completeddirect()
ts
direct(vector: Readonly<vector>): void;Set watched direction.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | Readonly<vector> | Direction vector. |
Returns
void
Implementation of
ts
look.directobject()
ts
object(gameObject: game_object): void;Set watched object.
Parameters
| Parameter | Type |
|---|---|
gameObject | game_object |
Returns
void
Implementation of
ts
look.objecttype()
ts
type(sightType: TXR_SightType): void;Set sight type.
Parameters
| Parameter | Type |
|---|---|
sightType | TXR_SightType |
Returns
void
Implementation of
ts
look.typecreate()
ts
static create(...args: unknown[]): MockLook;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockLook
mock()
ts
static mock(...args: unknown[]): look;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
look
Properties
__name
ts
__name: string = "look";LuaBind instance constructor name.
Implementation of
ts
look.__nameargs
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.
search
ts
readonly static search: 6;Engine enum value for look.search.