cameraOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
No edit summary
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma |Game name=
|game1= arma1
|version1= 1.00


|1.00|Game version=
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Returns the vehicle to which the camera is attached. |DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| [[cameraOn]] |SYNTAX=
|game4= tkoh
|version4= 1.00


|x1= <code>_object = [[cameraOn]];</code> |Example 1=
|game5= arma3
|version5= 0.50


| [[Object]] |RETURNVALUE=
|gr1= Camera Control
____________________________________________________________________________________________
|gr2= Remote Control


| [[switchCamera]], [[cameraView]], [[cameraEffect]] |SEEALSO=
|descr= Returns the vehicle to which the camera is attached. If you need the person, see [[focusOn]].
}}


<h3 style="display:none">Notes</h3>
|s1= [[cameraOn]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Object]] - vehicle
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_object = cameraOn;</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[switchCamera]] [[cameraView]] [[cameraEffect]] [[focusOn]] [[remoteControl]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Camera Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:55, 5 September 2023

Hover & click on the images for description

Description

Description:
Returns the vehicle to which the camera is attached. If you need the person, see focusOn.
Groups:
Camera ControlRemote Control

Syntax

Syntax:
cameraOn
Return Value:
Object - vehicle

Examples

Example 1:
_object = cameraOn;

Additional Information

See also:
switchCamera cameraView cameraEffect focusOn remoteControl

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