HU/getCameraMatrix: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Syntax) |
||
Line 5: | Line 5: | ||
{{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).}} | ||
== | ==Szintaxis== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 12: | Line 12: | ||
{{OOP||[[player]]:getCameraMatrix|cameraMatrix|setCameraMatrix}} | {{OOP||[[player]]:getCameraMatrix|cameraMatrix|setCameraMatrix}} | ||
=== | ===Kötelező paraméterek=== | ||
*'''thePlayer:''' The player whose camera matrix is to be returned. | *'''thePlayer:''' The player whose camera matrix is to be returned. | ||
</section> | </section> | ||
Line 23: | Line 23: | ||
</section> | </section> | ||
=== | ===Visszatérési érték=== | ||
This function returns 8 [[float|floats]] if the argument is valid (when applicable); the first three indicate the position of the camera, the next three indicate the position of the point it's facing, and the last two are the roll and field of view. Returns ''false'' if the argument is invalid. | This function returns 8 [[float|floats]] if the argument is valid (when applicable); the first three indicate the position of the camera, the next three indicate the position of the point it's facing, and the last two are the roll and field of view. Returns ''false'' if the argument is invalid. | ||
=== | ===Példa=== | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Revision as of 21:15, 28 August 2018
This function gets the position of the camera and the position of the point it is facing.
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 [-]
Serverfloat 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 [-]
Clientfloat 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
This function returns 8 floats if the argument is valid (when applicable); the first three indicate the position of the camera, the next three indicate the position of the point it's facing, and the last two are the roll and field of view. Returns false if the argument is invalid.
Példa
Click to collapse [-]
Clientlocal x, y, z, lx, ly, lz = getCameraMatrix () x, lx = x + 1, lx + 1 setCameraMatrix (x, y, z, lx, ly, lz)
See Also
- HU/fadeCamera
- HU/getCamera
- HU/getCameraClip
- HU/getCameraFieldOfView
- HU/getCameraGoggleEffect
- HU/getCameraInterior
- HU/getCameraMatrix
- HU/getCameraShakeLevel
- HU/getCameraTarget
- HU/getCameraViewMode
- HU/setCameraClip
- HU/setCameraFieldOfView
- HU/setCameraGoggleEffect
- HU/setCameraInterior
- HU/setCameraMatrix
- HU/setCameraShakeLevel
- HU/setCameraTarget
- HU/setCameraViewMode