Vehicle Pos & Angles - 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: Vehicle Pos & Angles (
/showthread.php?tid=585005)
Vehicle Pos & Angles -
trapstar2020 - 09.08.2015
So, when i exit the vehicle and specific angle the player spawns where I want him to spawn but when the vehicle is facing another angle it spawns the player at some other position. It's for the tropic boat, i'm trying to get the player to exit at the little glass doors on the bottom deck.
Код:
new Float:pos[4];
GetVehiclePos(InTropic[playerid], pos[0], pos[1], pos[2]);
GetVehicleZAngle(InTropic[playerid], pos[3]);
SetPlayerPos(playerid, floatsub(pos[0], 3.390350), floatsub(pos[1], 0.012207), floatsub(pos[2], -1.066784) );
SetPlayerFacingAngle(playerid, pos[3]-180);
Re: Vehicle Pos & Angles -
trapstar2020 - 10.08.2015
No response yet