Skip to content

Class: holder ​

Holder object that the actor can engage with.

Source ​

src/xrGame/holder_custom_script.cpp, holder binding.

Custom Constructor ​

holder

Remarks ​

Returned only for objects that implement holder controls, such as mounted weapons or vehicles.

Methods ​

Action() ​

ts
Action(id: number, flags: number): void;

Send holder action flags.

Parameters ​

ParameterTypeDescription
idnumberAction id.
flagsnumberAction flags.

Returns ​

void


engaged() ​

ts
engaged(): boolean;

Returns ​

boolean

Whether the actor is currently attached to the holder.


SetEnterLocked() ​

ts
SetEnterLocked(is_enabled: boolean): void;

Set holder object enter state.

Parameters ​

ParameterTypeDescription
is_enabledbooleanWhether entering the holder is locked.

Returns ​

void


SetExitLocked() ​

ts
SetExitLocked(is_enabled: boolean): void;

Set holder object exit state.

Parameters ​

ParameterTypeDescription
is_enabledbooleanWhether exiting the holder is locked.

Returns ​

void


SetParam() ​

ts
SetParam(id: number, value: vector): void;

Set holder vector parameter.

Parameters ​

ParameterTypeDescription
idnumberParameter id.
valuevectorParameter value.

Returns ​

void