HU/getCameraGoggleEffect: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} This function returns what goggle effect is currently affecting the camera. ==Syntax== <syntaxhighlight lang="lua"> string getCameraGoggleEffect...") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function hu}} | ||
This function returns what goggle effect is currently affecting the camera. | This function returns what goggle effect is currently affecting the camera. | ||
== | ==Szintaxis== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string getCameraGoggleEffect ( ) | string getCameraGoggleEffect ( ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||Camera.getGoggleEffect|goggleEffect|setCameraGoggleEffect}} | {{OOP||Camera.getGoggleEffect|goggleEffect|setCameraGoggleEffect}} | ||
=== | ===Visszatérési érték=== | ||
* [[String]] | * Egy [[HU/String|string]], mely jelzi a pillanatnyi kamera effectjét. Ezek jelentését lentebb láthatja. | ||
{{Camera goggle modes}} | {{Camera goggle modes}} | ||
== | ==Példa== | ||
Ez a pálda egy parancsot ad az éjjellátó effect engedélyezéséhez, vagy letiltásához. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function nightvision() | function nightvision() | ||
Line 27: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | ==Lásd még== | ||
{{Client camera functions}} | {{Client camera functions hu}} | ||
[[en:getCameraGoggleEffect]] | [[en:getCameraGoggleEffect]] | ||
==Fordította== | |||
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]''''' |
Latest revision as of 20:59, 28 August 2018
This function returns what goggle effect is currently affecting the camera.
Szintaxis
string getCameraGoggleEffect ( )
OOP Syntax Help! I don't understand this!
- Method: Camera.getGoggleEffect(...)
- Variable: .goggleEffect
- Counterpart: setCameraGoggleEffect
Visszatérési érték
- Egy string, mely jelzi a pillanatnyi kamera effectjét. Ezek jelentését lentebb láthatja.
- normal: No camera goggle effect
- nightvision: Nightvision camera
- thermalvision: Infrared camera
Példa
Ez a pálda egy parancsot ad az éjjellátó effect engedélyezéséhez, vagy letiltásához.
function nightvision() if (getCameraGoggleEffect() == "normal") then setCameraGoggleEffect("nightvision") elseif (getCameraGoggleEffect() == "nightvision") then setCameraGoggleEffect("normal") end end addCommandHandler("nightvision", nightvision)
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