lockedCameraTo: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
mNo edit summary
 
Line 20: Line 20:
* [[Nothing]] - not locked
* [[Nothing]] - not locked
* [[Object]] - if locked to an object
* [[Object]] - if locked to an object
* [[Array]] format [[Position#PositionASL|PositionASL]] - if locked to a position
* [[Position#PositionASL|PositionASL]] - if locked to a position


|x1= <sqf>vehicle player lockedCameraTo [];</sqf>
|x1= <sqf>vehicle player lockedCameraTo [];</sqf>

Latest revision as of 07:47, 2 January 2026

Hover & click on the images for description

Description

Description:
Return the turret lock target.
The command is local to the turret, not the vehicle.
Groups:
Camera Control

Syntax

Syntax:
vehicle lockedCameraTo turretPath
Parameters:
vehicle: Object
turretPath: Array of Numbers - turret path. Use an empty array to select the gunner's turret by default
Return Value:
Can be one of:

Examples

Example 1:
vehicle player lockedCameraTo [];

Additional Information

See also:
lockCameraTo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note