Model
self:get_current_animation
Shared
Retrieves the name of the currently playing animation
Syntax
local name = self:get_current_animation()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
string | name | Name of the currently playing animation |
Examples
local entity = model.create("character")
entity:play_animation("idle")
engine.print("info", "Current animation:", entity:get_current_animation())