On my ttt server there is a lua error that happens sporadically with my jihad bomb the error is,
[CODE]ERROR: Hook 'CheckTimers' Failed: .../terrortown/entities/weapons/weapon_ttt_jihad/shared.lua:98: Tried to use a NULL entity!
Removing Hook 'CheckTimers'
[/CODE]
It only happens sometimes not all the time and when it does happen the round will not end.
Im guessing that the line its pointing to has changed
the line it points to is,
[code]ent:SetPos( self.Owner:GetPos() )
[/code]
I am stumped i do not know why this is causing an error.
Here is the rest of the function that line is from
[CODE]function SWEP:Asplode()
local k, v
// Make an explosion at your position
local ent = ents.Create( "env_explosion" )
ent:SetPos( self.Owner:GetPos() )
ent:SetOwner( self.Owner )
ent:Spawn()
ent:SetKeyValue( "iMagnitude", "250" )
ent:Fire( "Explode", 0, 0 )
ent:EmitSound( "siege/big_explosion.wav", 500, 500 )
self.Owner:Kill( )
for k, v in pairs( player.GetAll( ) ) do
v:ConCommand( "play siege/big_explosion.wav\n" )
end
end
[/CODE]
It means a lua error happened during a timer. If they owner of the bomb DC's during the timer or drops it. It will cause that to happen
I dont know how to fix
Sorry, you need to Log In to post a reply to this thread.