The game does supports non-integer values for the steer property on wheels in the editor, that feature is used in a lot of vanilla and modded vehicles, for example the big excavator, both cranes, etc.
However the function GetProperty() will truncate that value to an integer, perhaps this happen because in the implementation lua_tointeger is used instead of lua_tonumber which results in an implicit float to int conversion.
Steps to reproduce the behavior
Create a vehicle with steer = 0.9 or some other value
Obtain the vehicle wheels and call GetProperty(wheel, "steer")
Notice the function returns 0 instead of the correct value
Describe the bug
The game does supports non-integer values for the steer property on wheels in the editor, that feature is used in a lot of vanilla and modded vehicles, for example the big excavator, both cranes, etc. However the function GetProperty() will truncate that value to an integer, perhaps this happen because in the implementation
lua_tointeger
is used instead oflua_tonumber
which results in an implicit float to int conversion.Steps to reproduce the behavior
Expected behavior
For the function to return the correct values.
Environment
Additional context
No response