SA-MP Forums Archive
Calculate with coordinates? - 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: Calculate with coordinates? (/showthread.php?tid=640432)



Calculate with coordinates? - danielpalade - 02.09.2017

-- DELETED --


Re: Calculate with coordinates? - AbyssMorgan - 02.09.2017

PHP код:
GetVehiclePartPos(vehicleid,partid,&Float:tx,&Float:ty,&Float:tz,Float:offset_x=0.0,Float:offset_y=0.0,Float:offset_z=0.0);
//partid:
VEHICLE_PART_RFTIRE         Right Front tire
VEHICLE_PART_LFTIRE         
Left Front tire
VEHICLE_PART_RRTIRE         
Right Rear tire
VEHICLE_PART_LRTIRE         
Left Rear tire 
3DTryg.inc:
https://sampforum.blast.hk/showthread.php?tid=591010


Re: Calculate with coordinates? - danielpalade - 03.09.2017

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
GetVehiclePartPos(vehicleid,partid,&Float:tx,&Float:ty,&Float:tz,Float:offset_x=0.0,Float:offset_y=0.0,Float:offset_z=0.0);
//partid:
VEHICLE_PART_RFTIRE         Right Front tire
VEHICLE_PART_LFTIRE         
Left Front tire
VEHICLE_PART_RRTIRE         
Right Rear tire
VEHICLE_PART_LRTIRE         
Left Rear tire 
3DTryg.inc:
https://sampforum.blast.hk/showthread.php?tid=591010
Well and which function do I need to use from 3dtryg?


Re: Calculate with coordinates? - Paulice - 03.09.2017

Quote:
Originally Posted by danielpalade
Посмотреть сообщение
Well and which function do I need to use from 3dtryg?
GetVehiclePartPos lol

-----

Coordinate 1: 1373.0813, 784.131, 30.1
Coordinate 2: 0.1311, 1.94, 0.13

x = (1373.0813 + 0.1311)
y = (784.131 + 1.94)
z = (30.1 + 0.13)