🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page
  • Properties:
  • Static Functions:

Was this helpful?

  1. Game Classes

TimeOfDayManager

General game-time & weather manager.

Properties:

Name
Type
Description

GameSecondsPerRealSecond

float

-

SecondsSinceMidnight

float

(0.0 to 86400.0)

OverrideSurfaceWetness

float

0.0 - disabled

RainChance

float

-

Weather

float

(0.0 to 2.0)

WeatherTarget

float

Same as Weather but smoother

WeatherRandomInterval

float

-

WindDirection

float

(0.0 to 360.0)

WindSpeed

float

-

WindSpeedTarget

float

Same as WindSpeed but smoother

Static Functions:

.IsAboutToRain

TimeOfDayManager.IsAboutToRain(): boolean

.LockWeather

TimeOfDayManager.LockWeather(lock: boolean)

Argument
Type
Description

lock

boolean

-

Locks current weather and won't update its state.

PreviousSimWeaponNextOnCollision

Last updated 2 years ago

Was this helpful?

đŸ—ƒī¸
â˜€ī¸