BIS fnc camera setVisionMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (page filled)
Line 1: Line 1:
{{Function|= Comments
{{Function


| arma3 |Game name=
|game1= arma3


|1.00|Game version=
|version1= 1.00


<!---|arg= local |Multiplayer Arguments=--->
<!--|exec= server|=-->


<!---|eff= local |Multiplayer Effects=--->
<!--|arg= local-->


| <pre>/*
<!--|eff= local-->
Author: Nelson Duarte <@Nelson_G_Duarte>


Description:
|descr= Sets camera vision mode.
Set's camera vision mode


Parameter(s):
|s1= [camera, mode] call [[BIS_fnc_camera_setVisionMode]]
_this select 0: Object - The camera
_this select 1: Integer - The vision mode


Returns:
|p1= camera: [[Object]] - The camera
Nothing
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_camera_setVisionMode]]|Syntax=
|p2= mode: [[Number]] - (Optional, default 0)
*0 - no vision mode
*1 - Night vision
*2 - Ti


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|r1= [[Nothing]]


|Datatype - description|Return value=
|x1= <code>[BIS_camera,1] [[call]] [[BIS_fnc_camera_setVisionMode]];</code>


|x1= <code></code>|Example 1=
|exec= call


|exec= call |Execution=
|seealso= [[BIS_fnc_camera_getVisionMode]]


| |See also=
}}
}}



Revision as of 12:10, 9 January 2020

Hover & click on the images for description

Description

Description:
Sets camera vision mode.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[camera, mode] call BIS_fnc_camera_setVisionMode
Parameters:
camera: Object - The camera
mode: Number - (Optional, default 0)
  • 0 - no vision mode
  • 1 - Night vision
  • 2 - Ti
Return Value:
Nothing

Examples

Example 1:
[BIS_camera,1] call BIS_fnc_camera_setVisionMode;

Additional Information

See also:
BIS_fnc_camera_getVisionMode

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note