Vital.sandbox
Model

self:set_animation_speed

Shared

Sets the playback speed of the model's animation


Syntax

local status = self:set_animation_speed(speed)

Parameters

TypeNameDescription
floatspeedPlayback speed multiplier

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set animation speed on a model
local entity = model.create("character")

--Default speed
entity:set_animation_speed(1.0)

--Double speed
entity:set_animation_speed(2.0)

--Half speed
entity:set_animation_speed(0.5)

On this page