self:pause_animation

Shared

Pauses the currently playing animation on the model


Syntax

local status = self:pause_animation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:play_animation("idle")
entity:pause_animation()

On this page