Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firearms.event.register("object_shot", function(object, bullet)
- local e = object:get_luaentity()
- if e and (e.name ~= "__builtin:item") then
- object:set_hp(object:get_hp() - bullet.damage)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement