Get Vehicle X Angle?
#1

Is there a way to get a vehicles X angle?
I need to get the angle and then set an objects rotation to match the vehicle.

For example: Vehicle goes up a hill, X angle changes and the object rotates upwards
Reply
#2

Currently, not possible. Only SetVehicleZAngle exists.
Reply
#3

There is GetVehicleRotationQuat, but have you tried looking at AttachObjectToVehicle?
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
There is GetVehicleRotationQuat, but have you tried looking at AttachObjectToVehicle?
Currently using that, but all rotation axis stay the same unless reset, so I will try that function
Reply
#5

Would there be anyway to attach camera to object and then set the camera X rotation same as the vehicles?
I'm trying to attempt alternative vehicle views
Reply
#6

https://sampwiki.blast.hk/wiki/GetVehicleZAngle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)