Model
self:stop_animation
Shared
Stops the currently playing animation on the model
Syntax
local status = self:stop_animation()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local entity = model.create("character")
entity:play_animation("idle")
entity:stop_animation()