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)
i = i + 1
end
else
-- player:SendMessage("Apologies, but BetterKill does not currently support non-mobs!")
elseif entity:IsPickup() then
if (testMTStr == "mtItem") then
entity:SetLifetime(0)
i = i + 1
end
end
end

Loading…
Cancel
Save