Model
self:get_animations
Shared
Retrieves a list of all available animations on the model
Syntax
local animations = self:get_animations()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
table | animations | Array of animation name strings |
Examples
local entity = model.create("character")
local animations = entity:get_animations()
for i = 1, #animations do
engine.print("info", animations[i])
end