Advertisement
Guest User

Untitled

a guest
Mar 9th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1.     OnRespawn           = function( this )
  2.         this:ToggleRespawn( false );
  3.         this:SetBatteryState( false );
  4.        
  5.         local fMaxHealth = this:GetMaxHealth();
  6.         this:SetHealth( math.random( 400.0, fMaxHealth ) );    
  7.  
  8.         this:SetFuel( math.random( 0.0, 20.0 ) );
  9.     end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement