You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function setVehicleComponentRotation for the vehicle components (misc_b and misc_c) does not work with the fire truck (ladder) with ID 544.
I think this model is a special case, because as far as I know it is the only vehicle where the vehicle components (misc_b and misc_c) move depending on changes in the vehicle chassis rotation (not wheel movements). The vehicle components misc_b and misc_c are attached to misc_a, but still seem to be able to be controlled independently of misc_a.
However, the mechanics are similar to door physics.
The specified values are not applied at all although the function setVehicleComponentRotation returns true and the vehicle components (misc_b and misc_c) are apparently only adjusted dynamically depending on changes in the vehicle chassis rotation.
Steps to reproduce
1. Execute this client code when you're sitting in a fire truck with a ladder:
function setVehicleComponent()
local veh = getPedOccupiedVehicle(localPlayer)
local x, y, z = getVehicleComponentRotation (veh, "misc_b")
local successful = setVehicleComponentRotation(veh, "misc_b", 0, 0, 17.9)
outputChatBox(tostring(successful))
outputChatBox(x)
outputChatBox(y)
outputChatBox(z)
end
addCommandHandler ( "set", setVehicleComponent)
The rotation of the vehicle component (misc_b) do not change.
That the game is at least in missions able to change the rotation of the vehicle components misc_b and misc_c possibly even with adjustment of the model collision can be seen in this video: https://youtu.be/5PuIWNLOSAU?si=HFScTuGrh6Fid1Ac
I also experimented a bit if I can deactivate the vehicle components of the fire truck with ladder with C++ code but I didn't find any possibility, also in the gta-reversed repository I couldn't find any code in this regard.
I also tried the setVehicleAdjustableProperty function and it did not work. However, this function does not seem to be designed for the fire truck with ladder.
Another problem I see is that the function setVehicleComponentRotation only changes the position of the visible model but not the position of the model collision. The function setVehicleAdjustableProperty, on the other hand, also changes the position of the model collision.
Relevant log output
No response
Security Policy
I have read and understood the Security Policy and this issue is not security related.
The text was updated successfully, but these errors were encountered:
Describe the bug
The function
setVehicleComponentRotation
for the vehicle components (misc_b and misc_c) does not work with the fire truck (ladder) with ID 544.I think this model is a special case, because as far as I know it is the only vehicle where the vehicle components (misc_b and misc_c) move depending on changes in the vehicle chassis rotation (not wheel movements). The vehicle components misc_b and misc_c are attached to misc_a, but still seem to be able to be controlled independently of misc_a.
However, the mechanics are similar to door physics.
The specified values are not applied at all although the function
setVehicleComponentRotation
returnstrue
and the vehicle components (misc_b and misc_c) are apparently only adjusted dynamically depending on changes in the vehicle chassis rotation.Steps to reproduce
1. Execute this client code when you're sitting in a fire truck with a ladder:
Version
Client: v1.6-release-22763
Server: v1.6-release-22763
Additional context
That the game is at least in missions able to change the rotation of the vehicle components misc_b and misc_c possibly even with adjustment of the model collision can be seen in this video: https://youtu.be/5PuIWNLOSAU?si=HFScTuGrh6Fid1Ac
I also experimented a bit if I can deactivate the vehicle components of the fire truck with ladder with C++ code but I didn't find any possibility, also in the gta-reversed repository I couldn't find any code in this regard.
I also tried the
setVehicleAdjustableProperty
function and it did not work. However, this function does not seem to be designed for the fire truck with ladder.Another problem I see is that the function
setVehicleComponentRotation
only changes the position of the visible model but not the position of the model collision. The functionsetVehicleAdjustableProperty
, on the other hand, also changes the position of the model collision.Relevant log output
No response
Security Policy
The text was updated successfully, but these errors were encountered: