self:stop_animation

Shared

Stops the currently playing animation on the model


Syntax

local status = self:stop_animation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Stop currently playing animation on a model
local entity = model.create("character")

entity:play_animation("idle")
entity:stop_animation()

On this page