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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.