nodinawe Posted November 6, 2024 Share Posted November 6, 2024 Hey there! I think that krampus sack just looks too big in game while equipped and i want to change that (client_only mod). So, while being on the ground it will be the same size, it will become smaller only when a player equips it. Can someone please help me with the code part of this mod, please? Here is my modmain.lua: AddPrefabPostInit("krampus_sack", function(inst) local function onEquip(inst, owner) if inst.Transform ~= nil then inst.Transform:SetScale(0.5, 0.5, 0.5) end end local function onUnequip(inst, owner) if inst.Transform ~= nil then inst.Transform:SetScale(1, 1, 1) end end inst:ListenForEvent("equipped", onEquip) inst:ListenForEvent("unequipped", onUnequip) end) Any help is appreciated. Link to comment https://forums.kleientertainment.com/forums/topic/160556-krampus-sack-resize-mod/ Share on other sites More sharing options...
grm9 Posted November 7, 2024 Share Posted November 7, 2024 an item's transform or anim state doesn't get used for when you're wearing it i think, a symbol override gets applied to the player instead, so this code only affects how it looks on the ground, don't know how could you change the size of the thing on the player without just making the art of it smaller Link to comment https://forums.kleientertainment.com/forums/topic/160556-krampus-sack-resize-mod/#findComment-1756137 Share on other sites More sharing options...
nodinawe Posted November 7, 2024 Author Share Posted November 7, 2024 5 hours ago, grm9 said: an item's transform or anim state doesn't get used for when you're wearing it i think, a symbol override gets applied to the player instead, so this code only affects how it looks on the ground, don't know how could you change the size of the thing on the player without just making the art of it smaller Okay, so I have to just somehow make krampus sack sprite smaller ig? Link to comment https://forums.kleientertainment.com/forums/topic/160556-krampus-sack-resize-mod/#findComment-1756166 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now