vehicle.set_speed_scale
Overview
- Scales the max forward speed and acceleration of the vehicle the Zoi is riding, optionally for a limited time. Applies only while the Zoi drives it directly in normal driving mode; fails when advanced driving (vehicle physics) is active. Raising applies at once; lowering eases down by 1.0 per second so the car does not stop dead. scale=1 restores normal speed. duration>0 returns to 1.0 after that many seconds; 0 keeps it until the next call. Not saved.
Metadata
| Field | Value |
|---|---|
| Display | Set Vehicle Speed Scale |
| Category | vehicle |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| scale | float | yes | — | Speed factor 0.1~3.0 (1.0 = normal) |
| duration | float | no | 0 | Seconds until speed returns to 1.0 (0 = until the next call) |
| entity_id | entityId | no | — | Riding Zoi (default: possessed) |
Returns
- Return shape is not declared for this command.
Usage
await inzoi.cli.execute('vehicle.set_speed_scale', {
scale: 0.0,
duration: 0, // optional
entity_id: 0, // optional
});