setTimeCycleDuration
Sets how long a day/night cycle lasts in seconds.
Syntax
engine.world.setTimeCycleDuration(seconds);
Parameters
Name | Type | Description |
---|---|---|
seconds | number | The duration in seconds |
Example
// Set the time cycle to 45 minutes
engine.world.setTimeMode('cycle');
engine.world.setTimeCycleDuration(45 * 60);
Available on: Client