Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var array<float> CoolDownCounts;
- //To Activate a cooldown simply subtract 1
- function CoolDown()
- {
- local int i;
- foreach CoolDownCounts(i)
- {
- if(CoolDownCounts[i] < 0)
- CoolDownCounts[i] = AbilityList[i].CoolDownAmount;
- if(CoolDownCounts[i] < AbilityList[i].CoolDownAmount)
- CoolDownCount[i]--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement