Vital.sandbox
Model

self:get_animations

Shared

Retrieves a list of all available animations on the model


Syntax

local animations = self:get_animations()

Parameters

TypeNameDescription

Returns

TypeNameDescription
tableanimationsArray of animation name strings

Examples

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

for i = 1, #animations do
    engine.print("info", animations[i])
end

On this page