HU/getCameraInterior: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Példa) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Shared function hu}} | ||
Returns the interior of the local camera (independent of the interior of the local player). | Returns the interior of the local camera (independent of the interior of the local player). | ||
==Procedural== | ==Procedural== | ||
=== | ===Szintaxis=== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 11: | Line 11: | ||
{{OOP||[[player]]:getCameraInterior|cameraInterior|setCameraInterior}} | {{OOP||[[player]]:getCameraInterior|cameraInterior|setCameraInterior}} | ||
=== | ===Kötelező paraméterek=== | ||
'''thePlayer''': | '''thePlayer''': A játékos, akinek a kamera interiorját szeretné megkapni. | ||
</section> | </section> | ||
Line 22: | Line 22: | ||
</section> | </section> | ||
Visszatérési értéke egy ''integer'', mely a kamera interiorját mutatja, ''false'' ha az argumentum érvénytelen. | |||
=== | ===Példa=== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 37: | Line 37: | ||
{{New items|3.0140|1.4| | {{New items|3.0140|1.4| | ||
== | ==Objektum orientált== | ||
=== | ===Szintaxis=== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 54: | Line 54: | ||
</section> | </section> | ||
Visszatérési értéke egy ''integer'', mely a kamera interiorját mutatja, ''false'' ha az argumentum érvénytelen. | |||
=== | ===Példa=== | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 68: | Line 68: | ||
}} | }} | ||
== | ==Lásd még== | ||
{{ | {{Client camera functions hu}} | ||
[[en:getCameraInterior]] | [[en:getCameraInterior]] | ||
==Fordította== | |||
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]''''' |
Latest revision as of 16:10, 30 August 2018
Returns the interior of the local camera (independent of the interior of the local player).
Procedural
Szintaxis
Click to collapse [-]
Serverint getCameraInterior ( player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:getCameraInterior(...)
- Variable: .cameraInterior
- Counterpart: setCameraInterior
Kötelező paraméterek
thePlayer: A játékos, akinek a kamera interiorját szeretné megkapni.
Click to collapse [-]
Clientint getCameraInterior ( )
OOP Syntax Help! I don't understand this!
- Method: Camera.getInterior(...)
- Variable: .interior
- Counterpart: setCameraInterior
Visszatérési értéke egy integer, mely a kamera interiorját mutatja, false ha az argumentum érvénytelen.
Példa
Click to collapse [-]
Serverfunction outputCameraInterior ( player, command ) local interior = getCameraInterior ( player ) outputChatBox ( "The camera is in the interior " .. interior, player, 255, 255, 0 ) end addCommandHandler ( "camera", outputCameraInterior )
Objektum orientált
Szintaxis
Click to collapse [-]
Serverint player:getCameraInterior ( ) -- or int player.cameraInterior -- to get the camera interior value player.cameraInterior = int someValue -- to set the camera interior value
Click to collapse [-]
Clientint Camera.getInterior ( )
Visszatérési értéke egy integer, mely a kamera interiorját mutatja, false ha az argumentum érvénytelen.
Példa
Click to collapse [-]
Clientfunction outputCameraInterior ( command ) local interior = Camera.getInterior ( ) outputChatBox ( "The camera is in the interior " .. interior, localPlayer, 255, 255, 0 ) end addCommandHandler ( "camera", outputCameraInterior )
Lásd még
- 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