Goonstation 13 - Modules - TypesDefine Details

_std/macros/cooldown.dm

ON_COOLDOWN
GET_COOLDOWNlike ON_COOLDOWN but only gets the cooldown, doesn't refresh it

Define Details

GET_COOLDOWN

like ON_COOLDOWN but only gets the cooldown, doesn't refresh it

ON_COOLDOWN

Simple Cooldown System

Easy way to set cooldowns on an object.

Arguments:

Usage:

   if(!ON_COOLDOWN(global, "butt_talker", src.butt_cooldown))
   	speak(pick("butts", "butt"))