Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. --check if the game is over
  2.     if self.scoreDire >= self.max_kills then
  3.         GameRules:SetGameWinner(DOTA_TEAM_BADGUYS)
  4.         GameRules:MakeTeamLose(DOTA_TEAM_GOODGUYS)
  5.         GameRules:Defeated()
  6.     end
  7.  
  8.     if self.scoreRadiant >= self.max_kills then
  9.         GameRules:SetGameWinner(DOTA_TEAM_GOODGUYS)
  10.         GameRules:MakeTeamLose(DOTA_TEAM_BADGUYS)
  11.         GameRules:Defeated()
  12.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement