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
dayintno—Absolute in-game day index to jump to
hourintno—Target hour [0-23]
minuteintno—Target minute [0-59]
allow_rewindboolnofalseAllow jumping backward in time

Usage

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