Class: XR_object
Object interaction action.
Source
C++ class object
Custom Constructor
object
Remarks
Object actions are consumed by the object handler of an AI entity. Weapon-oriented actions such as fire1, reload, or strap require the controlled object to have a compatible active item.
Extends
Constructors
Constructor
new XR_object(): XR_object;Create an empty object action.
Returns
XR_object
Overrides
Constructor
new XR_object(game_object: game_object, action: TXR_object_action): XR_object;Create an action for a game object.
Parameters
| Parameter | Type | Description |
|---|---|---|
game_object | game_object | Target object. |
action | TXR_object_action | Object action id. |
Returns
XR_object
Overrides
EngineBinding.constructorConstructor
new XR_object(
game_object: game_object,
action: TXR_object_action,
time: number): XR_object;Create a timed action for a game object.
Parameters
| Parameter | Type | Description |
|---|---|---|
game_object | game_object | Target object. |
action | TXR_object_action | Object action id. |
time | number | Action time limit. |
Returns
XR_object
Overrides
EngineBinding.constructorConstructor
new XR_object(action: TXR_object_action): XR_object;Create an object action without a target.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | TXR_object_action | Object action id. |
Returns
XR_object
Overrides
EngineBinding.constructorConstructor
new XR_object(object_name: string, action: TXR_object_action): XR_object;Create an action for an object by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
object_name | string | Target object name. |
action | TXR_object_action | Object action id. |
Returns
XR_object
Overrides
EngineBinding.constructorMethods
action()
action(action: TXR_object_action): void;Set the object action mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | TXR_object_action | Object action id. |
Returns
void
completed()
completed(): boolean;Check whether the object action is complete.
Returns
boolean
Whether the action is complete.
object()
Call Signature
object(object_name: string): void;Set target object by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
object_name | string | Target object name. |
Returns
void
Call Signature
object(game_object: game_object): void;Set target object.
Parameters
| Parameter | Type | Description |
|---|---|---|
game_object | game_object | Target object. |
Returns
void
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
readonly static __name: string;LuaBind class constructor name.
Inherited from
activate
readonly static activate: 16;Engine enum value for XR_object.activate.
aim1
readonly static aim1: 4;Engine enum value for XR_object.aim1.
aim2
readonly static aim2: 5;Engine enum value for XR_object.aim2.
deactivate
readonly static deactivate: 17;Engine enum value for XR_object.deactivate.
drop
readonly static drop: 11;Engine enum value for XR_object.drop.
dummy
readonly static dummy: -1;Engine enum value for XR_object.dummy.
fire1
readonly static fire1: 6;Engine enum value for XR_object.fire1.
fire2
readonly static fire2: 8;Engine enum value for XR_object.fire2.
hide
readonly static hide: 22;Engine enum value for XR_object.hide.
idle
readonly static idle: 9;Engine enum value for XR_object.idle.
reload
readonly static reload: 2;Engine enum value for XR_object.reload.
reload1
readonly static reload1: 2;Engine enum value for XR_object.reload1.
reload2
readonly static reload2: 3;Engine enum value for XR_object.reload2.
show
readonly static show: 21;Engine enum value for XR_object.show.
strap
readonly static strap: 10;Engine enum value for XR_object.strap.
switch1
readonly static switch1: 0;Engine enum value for XR_object.switch1.
switch2
readonly static switch2: 1;Engine enum value for XR_object.switch2.
take
readonly static take: 23;Engine enum value for XR_object.take.
turn_off
readonly static turn_off: 20;Engine enum value for XR_object.turn_off.
turn_on
readonly static turn_on: 19;Engine enum value for XR_object.turn_on.
use
readonly static use: 18;Engine enum value for XR_object.use.