Closed Frosty1940 closed 7 years ago
[ERROR] gamemodes/nutscript/plugins/improveddoors/sh_plugin.lua:9: attempt to index local 'entity' (a nil value) IsDoor - gamemodes/nutscript/plugins/improveddoors/sh_plugin.lua:9 BlastDoor - gamemodes/nutscript/plugins/improveddoors/sh_util.lua:5 unknown - gamemodes/dissolution/entities/entities/nut_zombie/shared.lua:64 Timer Failed! [Simple][@gamemodes/dissolution/entities/entities/nut_zombie/shared.lua (line 58)]
[ERROR] gamemodes/nutscript/plugins/improveddoors/sh_plugin.lua:9: attempt to index local 'entity' (a nil value)
Timer Failed! [Simple][@gamemodes/dissolution/entities/entities/nut_zombie/shared.lua (line 58)]
if (IsValid(entity) and string.find(entity:GetClass(), "door")) then if (!string.find(entity:GetModel(), "metal")) then timer.Simple(0.3, function() -- 58번 줄 entity:EmitSound("physics/wood/wood_plank_break"..math.random(1, 4)..".wav", 100, math.random(90, 130)) entity.nut_BreakHealth = (entity.nut_BreakHealth or 100) - math.random(5, 10) if (entity.nut_BreakHealth <= 0) then entity.nut_BreakHealth = 100 nut.util.BlastDoor(entity, self:GetForward() * 600) -- 64번 줄 entity:EmitSound("physics/wood/wood_furniture_break"..math.random(1, 2)..".wav", 140) util.ScreenShake(entity:GetPos(), 8, 8, math.Rand(0.6, 0.8), 560) end local effect = EffectData() local position = entity:LocalToWorld(entity:OBBCenter()) + entity:GetRight()*math.random(-16, 16) + entity:GetUp()*math.random(-16, 16) effect:SetStart(position) effect:SetOrigin(position) util.Effect("GlassImpact", effect) util.ScreenShake(entity:GetPos(), 5, 5, math.Rand(0.2, 0.4), 360) end) self:PlaySequenceAndWait("swing", 1) end end
Fixed.