Class game_object_callbacks_implementation_base
- game_object_callbacks_implementation_base
Constructors
Methods
clear_callbacks
- clear_callbacks(): void
Returns void
set_callback
- set_callback(type: TXR_callback, cb: null): void
Returns void
- set_callback<T extends AnyObject>(
type: 0,
cb?: (this: void) => void,
object?: T,
): void Parameters
- type: 0
Optional
cb: (this: void) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 1,
cb?: (this: void) => void,
object?: T,
): void Parameters
- type: 1
Optional
cb: (this: void) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 2,
cb?: (
this: void,
item: game_object,
money_direction: boolean,
money: number,
) => void,
object?: T,
): void Parameters
- type: 2
Optional
cb: (this: void, item: game_object, money_direction: boolean, money: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 3,
cb?: (this: void, money_get: number, money_put: number) => void,
object?: T,
): void Parameters
- type: 3
Optional
cb: (this: void, money_get: number, money_put: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 4,
cb?: (this: void, zone: game_object, object: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 5,
cb?: (this: void, zone: game_object, object: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 6,
cb?: (this: void, xobject: game_object) => void,
object?: T,
): void Parameters
- type: 6
Optional
cb: (this: void, xobject: game_object) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 7,
cb?: (this: void, xobject: game_object) => void,
object?: T,
): void Parameters
- type: 7
Optional
cb: (this: void, xobject: game_object) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 8,
cb?: (this: void, target: game_object, killer: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 9,
cb?: (
this: void,
object: game_object,
action_type: number,
point_index: number,
) => void,
object?: T,
): void Parameters
- type: 9
Optional
cb: (
this: void,
object: game_object,
action_type: number,
point_index: number,
) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 11,
cb?: (this: void, npc: game_object, info_id: string) => void,
object?: T,
): void Parameters
- type: 11
Optional
cb: (this: void, npc: game_object, info_id: string) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 13,
cb?: (this: void, task: CGameTask, state: TXR_TaskState) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 14,
cb?: (this: void, spot_type: string, id: number) => void,
object?: T,
): void Parameters
- type: 14
Optional
cb: (this: void, spot_type: string, id: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 15,
cb?: (this: void, object: game_object) => void,
object?: T,
): void Parameters
- type: 15
Optional
cb: (this: void, object: game_object) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 15,
cb?: (this: void, object: game_object, who: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 16,
cb?: (
this: void,
object: game_object,
damage: number,
direction: vector,
who: game_object,
bone_id: number,
) => void,
object?: T,
): void Parameters
- type: 16
Optional
cb: (
this: void,
object: game_object,
damage: number,
direction: vector,
who: game_object,
bone_id: number,
) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 17,
cb?: (
this: void,
object: game_object,
source_id: number,
sound_type: TXR_snd_type,
position: vector,
sound_power: number,
) => void,
object?: T,
): void Parameters
- type: 17
Optional
cb: (
this: void,
object: game_object,
source_id: number,
sound_type: TXR_snd_type,
position: vector,
sound_power: number,
) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 18,
cb?: (
this: void,
object: game_object,
movement_type: number,
unknown: -1,
) => void,
object?: T,
): void Parameters
- type: 18
Optional
cb: (this: void, object: game_object, movement_type: number, unknown: -1) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 26,
cb?: (
this: void,
distance: number,
current_position: vector,
vertex_id: number,
) => void,
object?: T,
): void Parameters
- type: 26
Optional
cb: (
this: void,
distance: number,
current_position: vector,
vertex_id: number,
) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 27,
cb?: (
this: void,
damage: number,
impulse: number,
hit_type: number,
who_id: number,
) => void,
object?: T,
): void Parameters
- type: 27
Optional
cb: (
this: void,
damage: number,
impulse: number,
hit_type: number,
who_id: number,
) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 28,
cb?: (this: void, object: game_object, item: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 29,
cb?: (this: void, object: game_object, item: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 30,
cb?: (this: void, skip_multi_anim_check?: boolean) => void,
object?: object,
): void Parameters
- type: 30
Optional
cb: (this: void, skip_multi_anim_check?: boolean) => voidOptional
object: object
Returns void
- set_callback<T extends AnyObject>(
type: 31,
cb?: (this: void) => void,
object?: T,
): void Parameters
- type: 31
Optional
cb: (this: void) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 32,
cb?: (this: void) => void,
object?: T,
): void Parameters
- type: 32
Optional
cb: (this: void) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 33,
cb?: (this: void) => void,
object?: T,
): void Parameters
- type: 33
Optional
cb: (this: void) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 34,
cb?: (
this: void,
object: game_object,
box: game_object,
item: game_object,
) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 35,
cb?: (this: void, object: game_object, suitable_ammo_total: number) => void,
object?: T,
): void Parameters
- type: 35
Optional
cb: (this: void, object: game_object, suitable_ammo_total: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 36,
cb?: (
this: void,
object: game_object,
hud_section: string,
current_motion: string,
state: number,
animation_slot: number,
) => void,
object?: T,
): void Parameters
- type: 36
Optional
cb: (
this: void,
object: game_object,
hud_section: string,
current_motion: string,
state: number,
animation_slot: number,
) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 37,
cb?: (this: void, key: number) => void,
object?: T,
): void Parameters
- type: 37
Optional
cb: (this: void, key: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 38,
cb?: (this: void, key: number) => void,
object?: T,
): void Parameters
- type: 38
Optional
cb: (this: void, key: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 39,
cb?: (this: void, key: number) => void,
object?: T,
): void Parameters
- type: 39
Optional
cb: (this: void, key: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 46,
cb?: (this: void, object: game_object) => void,
object?: T,
): void Parameters
- type: 46
Optional
cb: (this: void, object: game_object) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 47,
cb?: (this: void, object: game_object) => void,
object?: T,
): void Parameters
- type: 47
Optional
cb: (this: void, object: game_object) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 48,
cb?: (this: void, object: game_object) => void,
object?: T,
): void Parameters
- type: 48
Optional
cb: (this: void, object: game_object) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 49,
cb?: (this: void, owner: game_object, weapon: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 50,
cb?: (this: void, owner: game_object, weapon: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 51,
cb?: (this: void, owner: game_object, weapon: game_object) => void,
object?: T,
): void Returns void
- set_callback<T extends AnyObject>(
type: 52,
cb?: (this: void, object: game_object, suitable_ammo_total: number) => void,
object?: T,
): void Parameters
- type: 52
Optional
cb: (this: void, object: game_object, suitable_ammo_total: number) => voidOptional
object: T
Returns void
- set_callback<T extends AnyObject>(
type: 53,
cb?: (this: void, killer_id: number) => void,
object?: T,
): void Parameters
- type: 53
Optional
cb: (this: void, killer_id: number) => voidOptional
object: T
Returns void
set_enemy_callback
- set_enemy_callback(cb: null): void
Returns void
- set_enemy_callback<T>(
cb: (this: T, object: game_object, enemy: game_object) => boolean,
object: T,
): void Returns void
set_fastcall
- set_fastcall<T>(cb: (this: T) => boolean, context: T): void
Parameters
- cb: (this: T) => boolean
- context: T
Returns void
set_patrol_extrapolate_callback
- set_patrol_extrapolate_callback(
cb?: (cur_pt: number) => boolean,
object?: object,
): void Parameters
Optional
cb: (cur_pt: number) => booleanOptional
object: object
Returns void
set_smart_cover_target_selector
- set_smart_cover_target_selector(
cb?: (object: game_object) => void,
object?: object,
): void Parameters
Optional
cb: (object: game_object) => voidOptional
object: object
Returns void
Custom extension. For reference: src/xrGame/script_game_object_script.cpp