self:get_animations

Shared

Retrieves a list of all available animations on the model


Syntax

local animations = self:get_animations()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
tableanimationsArray of animation name strings

Examples

Print all available animations on a model
local entity = core.model.create("character")
local animations = entity:get_animations()

core.engine.iprint(animations)

On this page