Skip to main content

environment.set_time

Overview

  • Jumps to a specific in-game time. With only hour/minute it moves to the next occurrence (forward). With 'day' it jumps to that absolute in-game day index (see environment.get_state).

Metadata

FieldValue
DisplaySet Time
Categoryenvironment
AccessUserCheat
ScopeB2Authority
Tags
Aliasesworld.set_time

Parameters

NameTypeRequiredDefaultDescription
dayintnoAbsolute in-game day index to jump to
hourintnoTarget hour [0-23]
minuteintnoTarget minute [0-59]
allow_rewindboolnofalseAllow jumping backward in time

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('environment.set_time', {
day: 0, // optional
hour: 0, // optional
minute: 0, // optional
allow_rewind: false, // optional
});