lockCameraTo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>") |
||
Line 47: | Line 47: | ||
|x1= <code>uav lockCameraTo [vehicle, [0,0]];</code> | |x1= <code>uav lockCameraTo [vehicle, [0,0]];</code> | ||
|x2= <code>uav lockCameraTo [<nowiki/>objNull, [0,0]]; | |x2= <code>uav lockCameraTo [<nowiki/>objNull, [0,0]]; // unlocks the turret</code> | ||
|x3= <code>vehicle player lockCameraTo [enemyTarget, vehicle player unitTurret player, false];</code> | |x3= <code>vehicle player lockCameraTo [enemyTarget, vehicle player unitTurret player, false];</code> |
Revision as of 11:22, 12 May 2022
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:
uav lockCameraTo [vehicle, [0,0]];
- Example 2:
uav lockCameraTo [objNull, [0,0]]; // unlocks the turret
- Example 3:
vehicle player lockCameraTo [enemyTarget, vehicle player unitTurret player, false];
Additional Information
- See also:
- 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.