movement.set_speed_scale
Overview
- Scales a Zoi's walking and running speed, optionally for a limited time. Movement is root-motion driven, so the Zoi's animations play at the same factor and travel speed follows; every animation of the Zoi is affected while scaled. Survives walk/sprint toggles, unlike movement.set_speed. scale=1 restores normal speed. duration>0 restores 1.0 after that many seconds; 0 keeps it until the next call. Not saved.
Metadata
| Field | Value |
|---|---|
| Display | Set Movement Speed Scale |
| Category | movement |
| Access | ScriptCheat |
| Scope | B1Multicast |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Target entity ID (default: possessed) |
| scale | float | yes | — | Speed factor 0.1~5.0 (1.0 = normal) |
| duration | float | no | 0 | Seconds until speed returns to 1.0 (0 = until the next call) |
Returns
- Return shape is not declared for this command.
Usage
await inzoi.cli.execute('movement.set_speed_scale', {
entity_id: 0, // optional
scale: 0.0,
duration: 0, // optional
});