SA-MP Forums Archive
Get Vehicle X Angle? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get Vehicle X Angle? (/showthread.php?tid=337481)



Get Vehicle X Angle? - iTorran - 26.04.2012

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


Re: Get Vehicle X Angle? - Libra_PL - 26.04.2012

Currently, not possible. Only SetVehicleZAngle exists.


Re: Get Vehicle X Angle? - Vince - 26.04.2012

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


Re: Get Vehicle X Angle? - iTorran - 26.04.2012

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


Re: Get Vehicle X Angle? - iTorran - 26.04.2012

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


Re: Get Vehicle X Angle? - Gertin - 26.04.2012

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