guns4d-cd2025/attachments.lua
2024-12-01 16:19:51 -08:00

13 lines
297 B
Lua

local attachment = {
attached_bone = "gun",
}
function attachment:construct()
if self.instance then
assert(self.gun, "attachment has no gun")
end
end
function attachment:update_entity()
self.entity = nil
end
Guns4d.gun_attachment = leef.class.new_class:inherit(attachment)