Vital.sandbox
Model

self:get_animation_speed

Shared

Retrieves the current playback speed of the model's animation


Syntax

local speed = self:get_animation_speed()

Parameters

TypeNameDescription

Returns

TypeNameDescription
floatspeedCurrent animation playback speed multiplier

Examples

Get the current animation playback speed
local entity = model.create("character")

engine.print("info", "Animation speed:", entity:get_animation_speed())

On this page