HU/getCameraMatrix: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function gets the position of the camera and the position of the point it is facing.
Ez a function visszaadja a camera pozícióját, és azt a pontot amellyel szemben áll.


{{Note_hu| The server-side version of this function returns the last camera matrix that was set by the server, and thus does not necessarily indicate the current matrix of the camera (since it may have been changed client-side).}}
{{Note_hu| The server-side version of this function returns the last camera matrix that was set by the server, and thus does not necessarily indicate the current matrix of the camera (since it may have been changed client-side).}}

Revision as of 21:24, 28 August 2018

Ez a function visszaadja a camera pozícióját, és azt a pontot amellyel szemben áll.


[[{{{image}}}|link=|]] Megjegyzés: The server-side version of this function returns the last camera matrix that was set by the server, and thus does not necessarily indicate the current matrix of the camera (since it may have been changed client-side).

Szintaxis

Click to collapse [-]
Server
float float float float float float float float getCameraMatrix (player thePlayer)

OOP Syntax Help! I don't understand this!

Method: player:getCameraMatrix(...)
Variable: .cameraMatrix
Counterpart: setCameraMatrix


Kötelező paraméterek

  • thePlayer: The player whose camera matrix is to be returned.
Click to collapse [-]
Client
float float float float float float float float getCameraMatrix ()

OOP Syntax Help! I don't understand this!

Method: Camera.getMatrix(...)
Variable: .matrix
Counterpart: setCameraMatrix


Visszatérési érték

Ez a function visszaad 8 float értéket, ha a paraméter érvényes (amikor lehetséges); az első három a kamera helyzetét mutatja, a következő három azt a pontot mutatja, amellyel szemben áll, és az utolsó kettő pedig a roll és a látótér. Visszatérési értéke false, ha a paraméter érvénytelen.

Példa

Click to collapse [-]
Client
local x, y, z, lx, ly, lz = getCameraMatrix ()
x, lx = x + 1, lx + 1

setCameraMatrix (x, y, z, lx, ly, lz)

Lásd még

Fordította