How do I make the AI choose another attack if it picks an attack already on Cooldown

How would you go about setting timers? Would you use “Set Timer by Function/Event” or using delays with int variables?