Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ENT:Kill()
- -- Make an explosion effect
- local effectdata = EffectData()
- effectdata:SetOrigin( self.Entity:GetPos() )
- util.Effect( "Explosion", effectdata, true, true )
- -- Stop the sound effect
- self.Sound:Stop()
- -- Respawn the pilot
- if ValidEntity(self.Pilot) then
- self.Pilot:UnSpectate()
- self.Pilot:DrawViewModel(true)
- self.Pilot:DrawWorldModel(true)
- self.Pilot:Spawn()
- self.Pilot:SetNetworkedBool("isDriveShuttle",false)
- self.Pilot:SetPos(self.Entity:GetPos()+Vector(0,0,100))
- end
- end
Add Comment
Please, Sign In to add comment