Class: MockSound
Mock of the X-Ray engine sound action enumeration.
Implements
sound
Constructors
Constructor
ts
new MockSound(...args: unknown[]): MockSound;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockSound
Methods
completed()
ts
completed(): boolean;Returns
boolean
Whether sound playback is complete.
Implementation of
ts
sound.completedset_angles()
ts
set_angles(vector: vector): void;Set sound angles.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Angles. |
Returns
void
Implementation of
ts
sound.set_anglesset_bone()
ts
set_bone(value: string): void;Set sound bone.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | Bone name. |
Returns
void
Implementation of
ts
sound.set_boneset_position()
ts
set_position(vector: vector): void;Set sound position.
Parameters
| Parameter | Type | Description |
|---|---|---|
vector | vector | Position. |
Returns
void
Implementation of
ts
sound.set_positionset_sound()
ts
set_sound(value: string | sound_object): void;Set sound by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | sound_object | Sound name. |
Returns
void
Implementation of
ts
sound.set_soundset_sound_type()
ts
set_sound_type(type: TXR_snd_type): void;Set sound type.
Parameters
| Parameter | Type | Description |
|---|---|---|
type | TXR_snd_type | Sound type id. |
Returns
void
Implementation of
ts
sound.set_sound_typecreate()
ts
static create(...args: unknown[]): MockSound;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
MockSound
mock()
ts
static mock(...args: unknown[]): sound;Parameters
| Parameter | Type |
|---|---|
...args | unknown[] |
Returns
sound
Properties
__name
ts
__name: string = "sound";LuaBind instance constructor name.
Implementation of
ts
sound.__nameangles
ts
angles: vector | null = null;args
ts
args: unknown[];bone
ts
bone: string | null = null;isCompleted
ts
isCompleted: boolean = false;position
ts
position: vector | null = null;sound
ts
sound: string | sound_object | null = null;soundType
ts
soundType: TXR_snd_type | null = null;attack
ts
readonly static attack: 3;Engine enum value for sound.attack.
attack_hit
ts
readonly static attack_hit: 4;Engine enum value for sound.attack_hit.
die
ts
readonly static die: 7;Engine enum value for sound.die.
eat
ts
readonly static eat: 2;Engine enum value for sound.eat.
idle
ts
readonly static idle: 1;Engine enum value for sound.idle.
panic
ts
readonly static panic: 11;Engine enum value for sound.panic.
steal
ts
readonly static steal: 10;Engine enum value for sound.steal.
take_damage
ts
readonly static take_damage: 5;Engine enum value for sound.take_damage.
threaten
ts
readonly static threaten: 9;Engine enum value for sound.threaten.