Addicted2Elec Posted June 4, 2019 Share Posted June 4, 2019 The title is self-explanatory, I hope. I'm not looking to deactivate the spider creep, but rather cancel out (or reduce) the debuffs found on certain items, such as carrying the suspicious marble. I want to speed to not be -%90 for example, or the piggyback, I don't want it to be -%10 speed. Any and all help is much appreciated. Link to comment https://forums.kleientertainment.com/forums/topic/107081-how-to-negate-speed-debuffs/ Share on other sites More sharing options...
Ultroman Posted June 24, 2019 Share Posted June 24, 2019 With the following code, you can change all walking speed multipliers of selected prefabs to the same amount. I've set it to 1, which completely removes any walk speed multiplier. local prefabs_to_alter = { "armormarble", } for i, v in ipairs(prefabs_to_alter) do AddPrefabPostInit(v, function(inst) if inst.components.equippable then inst.components.equippable.walkspeedmult = 1 end end) end If you want to set different values for each of them, you can do this: local prefabs_to_alter = { armormarble = 0.10, } for p, v in pairs(prefabs_to_alter) do AddPrefabPostInit(p, function(inst) if inst.components.equippable then inst.components.equippable.walkspeedmult = v end end) end Link to comment https://forums.kleientertainment.com/forums/topic/107081-how-to-negate-speed-debuffs/#findComment-1213629 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