BetterKill: allow killing items

master
Drake 2 years ago
parent a3b86b1a1c
commit da50bf48ea

@ -78,8 +78,11 @@ function OnCommandIssued(args, player)
entity:TakeDamage(17, nil, 9999999, 9999999, 0) entity:TakeDamage(17, nil, 9999999, 9999999, 0)
i = i + 1 i = i + 1
end end
else elseif entity:IsPickup() then
-- player:SendMessage("Apologies, but BetterKill does not currently support non-mobs!") if (testMTStr == "mtItem") then
entity:SetLifetime(0)
i = i + 1
end
end end
end end

Loading…
Cancel
Save