FineNerds

Check if Down

Sep 3rd, 2015
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. total_down_check()
  2. {
  3.     while(1)
  4.     {
  5.         self.down = false;
  6.         self waittill_any( "fake_death", "death", "player_downed" );
  7.         self.down = true;
  8.        
  9.         if( self.down == true )
  10.         {
  11.             // code
  12.         }
  13.     wait .1;
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment