lockCameraTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.26|Game version=
|1.26


|gr1 = Camera Control |GROUP1=
|gr1 = Camera Control


| Lock/Unlock stabilized camera (in vanilla used currently only for UAVs) to target. |DESCRIPTION=
| Lock/Unlock stabilized camera (in vanilla used currently only for UAVs) to target.


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


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


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


|p3= turretPath: [[Array]] - path to the turret with required camera |PARAMETER3=
|p3= turretPath: [[Array]] - path to the turret with required camera


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>uav [[lockCameraTo]] [vehicle, [0,0]];</code> |EXAMPLE1=
|x1= <code>uav [[lockCameraTo]] [vehicle, [0,0]];</code>


|x2= <code>uav [[lockCameraTo]] [<nowiki/>[[objNull]], [0,0]]; {{cc|unlocks the turret}}</code> |EXAMPLE2=
|x2= <code>uav [[lockCameraTo]] [<nowiki/>[[objNull]], [0,0]]; {{cc|unlocks the turret}}</code>


| [[camTarget]] [[camSetTarget]] [[camPrepareTarget]] |SEEALSO=
| [[camTarget]] [[camSetTarget]] [[camPrepareTarget]]
}}
}}



Revision as of 01:05, 18 January 2021

Hover & click on the images for description

Description

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

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:
camTarget camSetTarget camPrepareTarget

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