Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Piggyback
- local function piggybackpostinit(inst)
- if backpack_yes then
- inst.components.equippable.equipslot = GLOBAL.EQUIPSLOTS.PACK
- end
- if not biggerb_no then
- local slotpos = {}
- for y = 0, 6 do
- table.insert(slotpos, Vector3(-162, -y*75 + 240 ,0))
- table.insert(slotpos, Vector3(-162 +75, -y*75 + 240 ,0))
- end
- inst.components.container:SetNumSlots(#slotpos)
- inst.components.container.widgetslotpos = slotpos
- inst.components.container.widgetanimbank = "ui_krampusbag_2x8"
- inst.components.container.widgetanimbuild = "ui_krampusbag_2x8"
- inst.components.container.widgetpos = Vector3(0,-75,0)
- end
- if storable_yes then
- inst.components.inventoryitem.cangoincontainer = true
- end
- if not speed_penalty_yes then
- inst.components.equippable.walkspeedmult = 1
- end
- end
- AddPrefabPostInit("piggyback", piggybackpostinit)
- --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement