Non-player character add-on.
Provides animated moves for NPC with a specified behavior.
- Source:
Summary
Members
Methods
Type Definitions
Detailed Description
Members
NT_FLYING
NT_SWIMMING
NT_WALKING
Methods
disable_animation()
Removes all sensors attached to animated objects and stops animation
- Source:
enable_animation()
Attaches sensors to characters and runs elapsed_cb every frame.
- Source:
new_event_track(graph)
Creates a new event track based on a given graph.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
graph |
Object | Animation graph with a number of movement params.
Properties
|
- Source:
Type Definitions
GraphActions
An object containing actions for every movement type.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
idle |
Array | An array of "idle" animations. |
move |
Array | An array of "move" animations. |
move_start |
Array | An array of "move_start" animations. |
move_blends |
Array | An array of "move_blends" animations. |
- Source: