ArcAngela Posted June 14, 2020 Share Posted June 14, 2020 I've been trying to make a character not gain any speed multipliers when walking on roads, paths and trails, but everything I tried so far has not worked. My attempts on character.lua: inst.components.locomotor:FasterOnRoad(false) inst.components.locomotor:SetFasterOnRoad(false) inst.components.locomotor.fastmultiplier = 1.00 inst.components.locomotor.enablegroundspeedmultiplier = false inst:AddComponent("locomotor") inst.components.locomotor:EnableGroundSpeedMultiplier(false) I tried these individually and none of them seem to have worked, I can clearly see that setting groundspeedmultiplier to false does something but all it actually does is teleport me back a few steps every time I try walking on Roads, not actually slowing me down. I went over to Wurt and saw that she has a multiplier for walking on swamp tiles, and I also noticed that Roads count as a tile. inst.components.locomotor:SetFasterOnGroundTile(GROUND.MARSH, true) so I tried inst.components.locomotor:SetFasterOnGroundTile(GROUND.ROAD, false) and it still doesn't work... Has anyone ever attempted to "remove" or "ignore" the road's speed buff? I'm not that good at Modding but everything I tried so far with the locomotor component has failed me. Link to comment https://forums.kleientertainment.com/forums/topic/119043-cant-figure-out-a-way-to-prevent-a-character-from-gaining-roads-speed-buff/ Share on other sites More sharing options...
ArcAngela Posted June 15, 2020 Author Share Posted June 15, 2020 I figured it out after full days of testing... inst.components.locomotor:IsFasterOnGroundTile(false) 2 Link to comment https://forums.kleientertainment.com/forums/topic/119043-cant-figure-out-a-way-to-prevent-a-character-from-gaining-roads-speed-buff/#findComment-1343412 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