Class: anim
Animation action.
Source
C++ class anim
Custom Constructor
anim
Remarks
String animation overloads play a named script animation. Numeric one-argument overloads set an AI mental state. Numeric two-argument overloads are monster animation actions.
Extends
Constructors
Constructor
new anim(): anim;Create an empty animation action.
Returns
anim
Overrides
Constructor
new anim(value: string): anim;Play an animation by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | Animation name. |
Returns
anim
Overrides
EngineBinding.constructorConstructor
new anim(value1: string, value2: boolean): anim;Play an animation by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
value1 | string | Animation name. |
value2 | boolean | Whether the animation should loop. |
Returns
anim
Overrides
EngineBinding.constructorConstructor
new anim(state: TXR_mental_state): anim;Set AI mental state.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | TXR_mental_state | Mental state id. |
Returns
anim
Overrides
EngineBinding.constructorConstructor
new anim(state: TXR_monster_animation_action, value: number): anim;Set monster animation action and extra value.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | TXR_monster_animation_action | Monster animation action id. |
value | number | Extra action value. |
Returns
anim
Remarks
Monster-only overload using MonsterSpace::EScriptMonsterAnimAction values exposed on anim.
Overrides
EngineBinding.constructorMethods
anim()
anim(value: string): void;Set animation name.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | Animation name. |
Returns
void
completed()
completed(): boolean;Returns
boolean
Whether the animation action is complete.
type()
type(state: TXR_mental_state): void;Set mental state.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | TXR_mental_state | Mental state id. |
Returns
void
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
__name
readonly static __name: string;LuaBind class constructor name.
Inherited from
attack
readonly static attack: 7;Engine enum value for anim.attack.
capture_prepare
readonly static capture_prepare: 1;Engine enum value for anim.capture_prepare.
danger
readonly static danger: 0;Engine enum value for anim.danger.
eat
readonly static eat: 4;Engine enum value for anim.eat.
free
readonly static free: 1;Engine enum value for anim.free.
lie_idle
readonly static lie_idle: 3;Engine enum value for anim.lie_idle.
look_around
readonly static look_around: 8;Engine enum value for anim.look_around.
panic
readonly static panic: 2;Engine enum value for anim.panic.
rest
readonly static rest: 6;Engine enum value for anim.rest.
sit_idle
readonly static sit_idle: 2;Engine enum value for anim.sit_idle.
sleep
readonly static sleep: 5;Engine enum value for anim.sleep.
stand_idle
readonly static stand_idle: 0;Engine enum value for anim.stand_idle.
turn
readonly static turn: 9;Engine enum value for anim.turn.