# Example snippet for the hint LastPlayedTime:float = 0.0 OnTriggered := func(): CurrentTime := CurrentTime() if (CurrentTime - LastPlayedTime) > CooldownTime: Sound.Play() LastPlayedTime = CurrentTime