Class: act
Global monster action.
Source
C++ class act
Custom Constructor
act
Remarks
Monster global actions are consumed by custom monster controllers. They are not a generic command system for stalkers, items, or vehicles.
Constructors
Constructor
ts
new act(): act;Create an empty global monster action.
Returns
act
Constructor
ts
new act(action: number): act;Create a global monster action.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | number | Global monster action id. |
Returns
act
Constructor
ts
new act(action: number, game_object: game_object): act;Create a global monster action with a target object.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | number | Global monster action id. |
game_object | game_object | Target object. |
Returns
act
Properties
attack
ts
readonly static attack: 2;Engine enum value for act.attack.
eat
ts
readonly static eat: 1;Engine enum value for act.eat.
panic
ts
readonly static panic: 3;Engine enum value for act.panic.
rest
ts
readonly static rest: 0;Engine enum value for act.rest.