lockCameraTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(looks like target could be position ASL not AGL)
mNo edit summary
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''lockCameraTo''' [object,turretPath]|= Syntax
| vehicle '''lockCameraTo''' [target, turretPath]|= Syntax


|p1= vehicle: [[Object]] |= Parameter 1
|p1= vehicle: [[Object]] - UAV |= Parameter 1


|p2= [object,turretPath]: [[Array]] |= Parameter 2
|p2= [target, turretPath]: [[Array]] |= Parameter 2


|p3= object: [[Object]] or [[PositionASL]] - use objNull for unlocking |= Parameter 3
|p3= target: [[Object]] or [[PositionASL]] - use objNull for unlocking |= Parameter 3


|p4= turretPath: [[Array]] |= Parameter 4
|p4= turretPath: [[Array]] - path to the turret with required camera |= Parameter 4


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>uav [[lockCameraTo]] [vehicle,[0,0]];</code> |= Example 1
|x1= <code>uav [[lockCameraTo]] [vehicle, [0,0]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:28, 11 November 2016

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, turretPath]: Array
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]];

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

Bottom Section

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