For example, under the code for defineObject { custommonster, code, etc, code }, there is:
Code: Select all
class = "MonsterMove",
name = "move",
sound = "rat_swarm_walk",
cooldown = 3,Code: Select all
class = "MonsterMove",
name = "move",
sound = "rat_swarm_walk",
cooldown = 3,Code: Select all
onComputeCooldown = function(champion, weapon, attack, attackType, level)
if level > 0 then return 2/3+math.random()*2/3 end
end,