lockedCameraTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Some wiki formatting)
 
Line 17: Line 17:
|p2= turretPath: [[Array]] of [[Number]]s - turret path. Use an empty array to select the gunner's turret by default
|p2= turretPath: [[Array]] of [[Number]]s - turret path. Use an empty array to select the gunner's turret by default


|r1= [[Nothing]] - not locked<br>
|r1= Can be one of:
[[Object]] - if locked to an object<br>
* [[Nothing]] - not locked
[[Array]] format [[Position#PositionASL|PositionASL]] - if locked to a position
* [[Object]] - if locked to an object
* [[Array]] format [[Position#PositionASL|PositionASL]] - if locked to a position


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


|seealso= [[lockCameraTo]]
|seealso= [[lockCameraTo]]
}}
}}

Latest revision as of 12:49, 12 March 2024

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 or on the Forums.
Only post proven facts here! Add Note