cameraOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Page cleaning)
No edit summary
 
(32 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 ArmA|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands ArmA2|{{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 09: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