Ugrás a fő tartalomhoz

GetVehicleMatrix

vigyázat

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

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.

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);