Getting position behind vehicle
#3

It works perfectly but I had to modify it a little to fix some warnings here is the code in case anyone needs it:

PHP код:
new Float:VehicleX;
new 
Float:VehicleY;
new 
Float:VehicleZ;
new 
PlayerKartID GetPlayerVehicleID(playerid);
GetVehiclePos(PlayerKartIDVehicleXVehicleYVehicleZ);
new const 
Float:DISTANCE 2.0;
new 
Float:angle;
GetVehicleZAngle(PlayerKartID,angle);
angle angle-180.0;
new 
Float:F_FLOATSIN floatsin(-angledegrees);
new 
Float:F_FLOATCOS floatcos(-angledegrees);
CreateObject(1225VehicleX DISTANCE F_FLOATSINVehicleY DISTANCE F_FLOATCOSVehicleZ0.00.0125.0); 
Thanks alot
Reply


Messages In This Thread
Getting position behind vehicle - by TEKNOJIHAD1 - 20.06.2017, 20:56
Re: Getting position behind vehicle - by Vince - 20.06.2017, 21:12
Re: Getting position behind vehicle - by TEKNOJIHAD1 - 20.06.2017, 21:42
Re: Getting position behind vehicle - by Eoussama - 20.06.2017, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)