self:set_animation_speed
Shared
Sets the playback speed of the model's animation
Syntax
local status = self:set_animation_speed(
speed
)Parameters
| Type | Name | Description |
|---|---|---|
float | speed | Playback speed multiplier |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
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)