. . . Posted June 17, 2016 Share Posted June 17, 2016 Hello, can someone tell me if there's a code to make a mod character not go faster on roads? My character goes way to fast on roads which kinda broken & dumb. Any help appreciated, thanks for reading !!!!!!!! Link to comment https://forums.kleientertainment.com/forums/topic/68257-code-to-make-character-not-go-faster-on-roads/ Share on other sites More sharing options...
Aquaterion Posted June 17, 2016 Share Posted June 17, 2016 inst.components.locomotor.fasteronroad = false that should work Link to comment https://forums.kleientertainment.com/forums/topic/68257-code-to-make-character-not-go-faster-on-roads/#findComment-785076 Share on other sites More sharing options...
rezecib Posted June 17, 2016 Share Posted June 17, 2016 @SuperDavid @Aquaterion You need to do a little more than that, because every time they do a ghost->player transformation, it will get reset. So you also need this second line in the master_postinit: inst.compnents.locomotor.fasteronroad = false inst:ListenForEvent("ms_respawnedfromghost", function() inst.compnents.locomotor.fasteronroad = false end) Link to comment https://forums.kleientertainment.com/forums/topic/68257-code-to-make-character-not-go-faster-on-roads/#findComment-785156 Share on other sites More sharing options...
. . . Posted June 17, 2016 Author Share Posted June 17, 2016 Thank you @Aquaterion @rezecib it worked, thanks so much both of you !!!!! Link to comment https://forums.kleientertainment.com/forums/topic/68257-code-to-make-character-not-go-faster-on-roads/#findComment-785185 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