முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetVehicleMatrix

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Gets the actual rotation matrix of the vehicle.

Parameters​

NameDescription
vehicleidThe ID of the vehicle.
&Float:rightXA float variable in which to store the rightX coordinate, passed by reference.
&Float:rightYA float variable in which to store the rightY coordinate, passed by reference.
&Float:rightZA float variable in which to store the rightZ coordinate, passed by reference.
&Float:upXA float variable in which to store the upX coordinate, passed by reference.
&Float:upYA float variable in which to store the upY coordinate, passed by reference.
&Float:upZA float variable in which to store the upZ coordinate, passed by reference.
&Float:atXA float variable in which to store the atX coordinate, passed by reference.
&Float:atYA float variable in which to store the atY coordinate, passed by reference.
&Float:atZA float variable in which to store the atZ coordinate, passed by reference.

Returns​

true - The function was executed successfully.

false - The function failed to execute. This means the vehicle specified does not exist.

The vehicle's rotation is stored in the specified variables.

Examples​

new
Float:rightX,
Float:rightY,
Float:rightZ,
Float:upX,
Float:upY,
Float:upZ,
Float:atX,
Float:atY,
Float:atZ;

GetVehicleMatrix(vehicleid, rightX, rightY, rightZ, upX, upY, upZ, atX, atY, atZ);