environment.get_time
Overview
- Returns the current in-game time (hour, minute, day). Runs locally on B1.
Metadata
| Field | Value |
|---|---|
| Display | Get Time |
| Category | environment |
| Access | Public |
| Scope | B1Standalone |
| Tags | — |
| Aliases | GetTime, world.get_time |
Parameters
- This command takes no parameters.
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
hour | int | yes | Current hour [0-23] |
minute | int | yes | Current minute [0-59] |
day | int | yes | Absolute in-game day index |
time_scale | float | yes | Current time scale multiplier |
paused | bool | yes | Whether time is paused |
Usage
await inzoi.cli.execute('environment.get_time');
Back to Command FinderSearch and filter all 318 CLI documents