cameraOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
No edit summary
 
(35 intermediate revisions by 4 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


| [[Object]] <nowiki>=</nowiki> [[cameraOn]] |= Syntax
|game4= tkoh
|version4= 1.00


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


| [[Object]] |= Return value
|gr1= Camera Control
____________________________________________________________________________________________
|gr2= Remote Control


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


}}
|s1= [[cameraOn]]


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


<!-- Note Section END -->
|x1= <sqf>_object = cameraOn;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[switchCamera]] [[cameraView]] [[cameraEffect]] [[focusOn]] [[remoteControl]]
<!-- CONTINUE Notes -->
}}
<dl class="command_description">
<dd class="notedate">Posted on November 2, 2015 - 15:50 (UTC)</dd>
<dt class="note">[[User:Mizzle420420|Mizzle420420]]</dt>
<dd class="note">
<code> _MyScreenPos = getPos cameraOn; <code>
This would getPos for the current player or vehicle that the client's camera is attached to.
 
<code> _CameraOnSetPos = cameraOn setPos _pos; <code>
This would do setPos for the current player or vehicle that the client's camera is attached to.
</dd>
</dl>
<!-- DISCONTINUE Notes -->
 
[[Category:Scripting Commands|CAMERAON]]
[[Category:Scripting Commands ArmA|CAMERAON]]
[[Category:Command Group: Camera Control|CAMERAON]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands Take On Helicopters|{{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