cameraOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|" to "|")
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|version1= 1.00


|1.00
|game2= arma2
|version2= 1.00
 
|game3= arma2oa
|version3= 1.50
 
|game4= tkoh
|version4= 1.00
 
|game5= arma3
|version5= 0.50


|gr1= Camera Control
|gr1= Camera Control
|gr2= Remote Control


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


|r1= [[cameraOn]]
|s1= [[cameraOn]]


|x1= <code>_object = [[cameraOn]];</code>
|r1= [[Object]] - vehicle


| [[Object]]
|x1= <sqf>_object = cameraOn;</sqf>


|seealso= [[switchCamera]], [[cameraView]], [[cameraEffect]]
|seealso= [[switchCamera]] [[cameraView]] [[cameraEffect]] [[focusOn]] [[remoteControl]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}

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