lockCameraTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''lockCameraTo''' [target, turretPath]|SYNTAX=
| vehicle [[lockCameraTo]] [target, turretPath] |SYNTAX=


|p1= vehicle: [[Object]] - UAV |PARAMETER1=
|p1= vehicle: [[Object]] - UAV |PARAMETER1=


|p2= [target, turretPath]: [[Array]] |PARAMETER2=
|p2= target: [[Object]] or [[PositionASL]] - use [[objNull]] for unlocking |PARAMETER2=


|p3= target: [[Object]] or [[PositionASL]] - use [[objNull]] for unlocking |PARAMETER3=
|p3= turretPath: [[Array]] - path to the turret with required camera |PARAMETER3=
 
|p4= turretPath: [[Array]] - path to the turret with required camera |PARAMETER4=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
Line 25: Line 23:
   
   
|x1= <code>uav [[lockCameraTo]] [vehicle, [0,0]];</code> |EXAMPLE1=
|x1= <code>uav [[lockCameraTo]] [vehicle, [0,0]];</code> |EXAMPLE1=
|x2= <code>uav [[lockCameraTo]] [<nowiki/>[[objNull]], [0,0]]; {{cc|unlocks the turret}}</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |SEEALSO=
| |SEEALSO=
}}
}}


Line 34: Line 33:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on April 10, 2015 - 06:54 (UTC)</dd>
<dt class="note">[[User:Commy2|Commy2]]</dt>
<dd class="note">
The vehicle has to have a stabilized optic for this command to work with ASL position.
</dd>


<!-- Note Section END -->
<!-- Note Section END -->
Line 41: Line 46:




[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Camera Control]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Remote Control]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Camera Control|lockCameraTo]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 10, 2015 - 06:54 (UTC)</dd>
<dt class="note">[[User:Commy2|Commy2]]</dt>
<dd class="note">
The command also accepts a position (ASL) instead of an object. The vehicle has to have a stabilized optic for this command to work.
</dd>
</dl>
<!-- DISCONTINUE Notes -->
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on June 22, 2019 - 08:36 (UTC)</dd>
<dt class="note">[[User:beno_83au|beno_83au]]</dt>
<dd class="note">
To unlock the camera, just use ''objNull'':
<code>_uav lockCameraTo [objNull,_turretPath];</code>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 12:13, 6 August 2020

Hover & click on the images for description

Description

Description:
Lock/Unlock stabilized camera (in vanilla used currently only for UAVs) to target.
Groups:
Uncategorised

Syntax

Syntax:
vehicle lockCameraTo [target, turretPath]
Parameters:
vehicle: Object - UAV
target: Object or PositionASL - use objNull for unlocking
turretPath: Array - path to the turret with required camera
Return Value:
Nothing

Examples

Example 1:
uav lockCameraTo [vehicle, [0,0]];
Example 2:
uav lockCameraTo [objNull, [0,0]]; // unlocks the turret

Additional Information

See also:
See also needed

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

Notes

Posted on April 10, 2015 - 06:54 (UTC)
Commy2
The vehicle has to have a stabilized optic for this command to work with ASL position.

Bottom Section