Guest User

Untitled

a guest
Jan 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function ENT:Kill()
  2.  
  3. -- Make an explosion effect
  4. local effectdata = EffectData()
  5. effectdata:SetOrigin( self.Entity:GetPos() )
  6. util.Effect( "Explosion", effectdata, true, true )
  7.  
  8. -- Stop the sound effect
  9. self.Sound:Stop()
  10.  
  11. -- Respawn the pilot
  12. if ValidEntity(self.Pilot) then
  13. self.Pilot:UnSpectate()
  14. self.Pilot:DrawViewModel(true)
  15. self.Pilot:DrawWorldModel(true)
  16. self.Pilot:Spawn()
  17. self.Pilot:SetNetworkedBool("isDriveShuttle",false)
  18. self.Pilot:SetPos(self.Entity:GetPos()+Vector(0,0,100))
  19. end
  20.  
  21. end
Add Comment
Please, Sign In to add comment