Community Forum

Update wheel.spring value in game

Forum Overview >> Scripting

CategoryScripting
Created10.12.2014 21:47


Slavo Ls Modding (SLAVO) 10.12.2014 21:48
Hi,

how can I update spring value of front wheels?

This dont work....
self.wheels[1].spring = 35;
self.wheels[2].spring = 35;


Emil Drefers (Unknown) 07.01.2015 14:04
Hi,

you can try the following.

After you've set the new values call

self:updateWheelBase(wheel);

and if you've changed the wheels's friction (long and lat stiffness) call

self:updateWheelTireFriction(wheel)

wheel is an element of the table self.wheels


Cheers,
Emil


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