Search found 3 matches
- Fri Dec 23, 2022 2:51 pm
- Forum: Modding help
- Topic: player.vehicle.rotation_speed not working.
- Replies: 7
- Views: 480
Re: player.vehicle.rotation_speed not working.
Ok, so I guess the only way is to manually correct rotation on every tick, and limit it more and more the faster the car is going. Do you think this could be doable??
- Fri Dec 23, 2022 11:27 am
- Forum: Modding help
- Topic: player.vehicle.rotation_speed not working.
- Replies: 7
- Views: 480
Re: player.vehicle.rotation_speed not working.
Cars have all the variables from vehicle, since they inherit from it, but cars have some variables of their own that vehicles don't, like rotation speed. When I get player.vehicle I can modify all vehicle variables, but not car variables.
- Fri Dec 23, 2022 11:08 am
- Forum: Modding help
- Topic: player.vehicle.rotation_speed not working.
- Replies: 7
- Views: 480
player.vehicle.rotation_speed not working.
I can't figure out how to change that in a function inside control.lua. The player.vehicle reference doesn't have the car's property (rotation speed) and I don't know how to get a reference to the car, and not it's parent vehicle.
Any help would be appreciated.
Any help would be appreciated.