lockCameraTo: Difference between revisions
Pabstmirror (talk | contribs) m (fix example) |
m (improved data type) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 18: | Line 18: | ||
|p1= vehicle: [[Object]] - UAV | |p1= vehicle: [[Object]] - UAV | ||
|p2= target: [[Object]] or | |p2= target: [[Object]] or [[Position#PositionASL|PositionASL]] - use [[objNull]] to unlock | ||
|p3= turretPath: [[ | |p3= turretPath: [[Turret Path]] - path to the turret with required camera | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
| Line 35: | Line 35: | ||
|p21= vehicle: [[Object]] - UAV | |p21= vehicle: [[Object]] - UAV | ||
|p22= target: [[Object]] or | |p22= target: [[Object]] or [[Position#PositionASL|PositionASL]] - use [[objNull]] to unlock | ||
|p23= turretPath: [[ | |p23= turretPath: [[Turret Path]] - path to the turret with required camera | ||
|p24= temporary: [[Boolean]] - if set to [[true]], the engine will automatically remove the lock-on once the turret reaches its target. | |p24= 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 | If the target is out of turret's reach, once the turret reaches its [[getTurretLimits | limits]] the lock-on will be released. | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
Latest revision as of 18:33, 5 January 2026
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 PositionASL - use objNull to unlock
- turretPath: Turret Path - 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 PositionASL - use objNull to unlock
- turretPath: Turret Path - 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, once the turret reaches its limits the lock-on will be released.
- 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.
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.