Community Forum

Speed Limit

Forum Overview >> Scripting

CategoryScripting
Created07.06.2023 16:22


Barry Ryerson (bazthehat) 07.06.2023 16:22
Hi all,

I'm working on a mod to dynamically changed the speed limit based on weather AND the implement attached. So far I can determine what the weather is doing, but haven't figured out how to alter the sped limit.

For now, I'm focussing just on cultivators. I've tried replacing cultivator.getDefaultSpeedLimit but that hasn't made a difference (I doubled the value but it kept to the same speed on test).

I saw in Vehicles.lua there's a function getRawSpeedLimit which just returns self.speedLimit, but I can't see how to use that to my advantage.

Does anyone have any clues as to how to change the speed limit for all cultivators in one fell swoop?

Thanks in advance.

Martin Schmid (Da_Martin) 11.04.2024 14:20
Hi, have you made any progress? I want to make a mod that sets the speed limit to the cruise control setting, but I'm having the same issue as you.

Martin Schmid (Da_Martin) 11.04.2024 14:20


Martin Schmid (Da_Martin) 11.04.2024 14:20



Note: Log in to post. Create a new account here.