Teleport Vehicle to Vehicle Face Angle
#6

Quote:
Originally Posted by Swedky
Посмотреть сообщение
PHP код:
new Float:fXFloat:fYFloat:fZFloat:angle;
GetVehiclePos(vehicleidfXfYfZ);
GetVehicleZAngle(vehicleidangle);
SetVehiclePos(vehicle2fX + (dist floatsin(-angledegrees)), fY + (dist floatcos(-angledegrees)), fZ); 
Change "dist" to the distance where you want to put "vehicle2". Positive values will put it in front, negative will put it in back.
Does not work so well.
I am trying to detach the Trailer from truck, but if i only use the Function "DetachTrailerFromVehicle" it not sync sometime with other players. Know how to solve it?
With some tests i came to use teleport trailer from 2 meters of the truck behind it.
Reply


Messages In This Thread
Teleport Vehicle to Vehicle Face Angle - by Hayden_Almeida - 16.12.2016, 16:18
Re: Teleport Vehicle to Vehicle Face Angle - by AbyssMorgan - 16.12.2016, 16:25
Re: Teleport Vehicle to Vehicle Face Angle - by Hayden_Almeida - 16.12.2016, 16:32
Re: Teleport Vehicle to Vehicle Face Angle - by AbyssMorgan - 16.12.2016, 16:34
Re: Teleport Vehicle to Vehicle Face Angle - by Swedky - 16.12.2016, 16:41
Re: Teleport Vehicle to Vehicle Face Angle - by Hayden_Almeida - 16.12.2016, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)