SA-MP Forums Archive
Question: How to control the vehicle's facing 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: Question: How to control the vehicle's facing angle? (/showthread.php?tid=311766)



Question: How to control the vehicle's facing angle? - KfirRP - 18.01.2012

I want to make the vehicle's facing angle equal to the character's facing angle.

Look: The user uses /v park .. Then I want to 'remember' the facing angle, so next time the car spawns it will spawn with the same facing angle he was at and not facing the north.


Re: Question: How to control the vehicle's facing angle? - Bogdan1992 - 18.01.2012

GetVehicleZAngle(vehicleid, Float:z_Angle)

SetVehicleZAngle(vehicleid, Float:z_Angle)