cameraOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
 
(54 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CAMERAON]]
{{RV|type=command
[[Category:Scripting Commands ArmA|CAMERAON]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">'''''person'' cameraOn ''filename'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


None.
|game5= arma3
|version5= 0.50


'''Type of returned value:'''
|gr1= Camera Control
|gr2= Remote Control


[[Object]]
|descr= Returns the vehicle to which the camera is attached. If you need the person, see [[focusOn]].


'''Compatibility:'''
|s1= [[cameraOn]]


Version 2.42 required.
|r1= [[Object]] - vehicle


'''Description:'''
|x1= <sqf>_object = cameraOn;</sqf>


Returns the vehicle to which the camera is attached.
|seealso= [[switchCamera]] [[cameraView]] [[cameraEffect]] [[focusOn]] [[remoteControl]]
}}

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