lockCameraTo: Difference between revisions
Lou Montana (talk | contribs) m (Add lockedCameraTo seeAlso link) |
Pabstmirror (talk | contribs) m (fix example) |
||
Line 44: | Line 44: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
{{Feature|informative|This syntax also works with non- | {{Feature|informative|This syntax also works with non-stabilized turrets, unlike {{Link|#Syntax 1}}.}} | ||
|x1= <sqf>uav lockCameraTo [ | |x1= <sqf>uav lockCameraTo [cursorObject, [0,0]];</sqf> | ||
|x2= <sqf>uav lockCameraTo [objNull, [0,0]]; // unlocks the turret</sqf> | |x2= <sqf>uav lockCameraTo [objNull, [0,0]]; // unlocks the turret</sqf> |
Latest revision as of 23:49, 7 October 2025
Description
- Description:
- Lock/Unlock stabilized camera to target. Works only on turrets which have optic mode selected with direction stabilization enabled.
- Groups:
- Camera Control
Syntax
- Syntax:
- vehicle lockCameraTo [target, turretPath]
- Parameters:
- vehicle: Object - UAV
- target: Object or Array format PositionASL - use objNull to unlock
- turretPath: Array - path to the turret with required camera
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- vehicle lockCameraTo [target, turretPath, temporary]
- Parameters:
- vehicle: Object - UAV
- target: Object or Array format PositionASL - use objNull to unlock
- turretPath: Array - path to the turret with required camera
- temporary: Boolean - if set to true, the engine will automatically remove the lock-on once the turret reaches its target. If the target is out of turret's reach, the turret will move to the maximum of its capacity towards the target.
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- lockedCameraTo camTarget camSetTarget camPrepareTarget directionStabilizationEnabled enableDirectionStabilization
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
- Posted on Apr 10, 2015 - 06:54 (UTC)
- The vehicle has to have a stabilized optic for this command to work with ASL position.