# window_time_is_div
window_time_is_div(modulo)
Source (opens new window)
Check if the current window_timer
is divisible by the modulo
and the attack is not in hitpause.
// Without Assistant
// Forgetting `!hitpause` can cause hard to detect bugs.
if window_timer % modulo and !hitpause {
sound_play(sound_get("airhorn"))
}
// With Assistant
if window_time_is_div(modulo) {
sound_play(sound_get("airhorn"))
}
Parameters:
modulo
: (int) The number to check divisibility for.
See Also
- window_time_is: Check if the current frame equals a number.