Advertisement
MonsOlympus

Untitled

May 6th, 2013
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var array<float> CoolDownCounts;
  2.  
  3.  
  4. //To Activate a cooldown simply subtract 1
  5. function CoolDown()
  6. {
  7.     local int i;
  8.  
  9.     foreach CoolDownCounts(i)
  10.     {
  11.         if(CoolDownCounts[i] < 0)
  12.             CoolDownCounts[i] = AbilityList[i].CoolDownAmount;
  13.  
  14.         if(CoolDownCounts[i] < AbilityList[i].CoolDownAmount)
  15.             CoolDownCount[i]--;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement