Commy2
The vehicle has to have a stabilized optic for this command to work with ASL position.
Results appear below as you type; use the arrow keys to move through them.
Lock/Unlock stabilized camera to target. Works only on turrets which have optic mode selected with direction stabilization enabled.
Note
Since Arma 3 v2.08 the command also works with non-stabilized turrets (such as main turret of a tank). See syntax 2.
Note
The command is local to the turret gunner, not the vehicle.
vehicle lockCameraTo [target, turretPath]
Parameters:
vehicle: Object - UAVtarget: Object or PositionASL - use objNull to unlockturretPath: Turret Path - path to the turret with required cameraReturns: Nothing
Important
- This syntax only works with stabilized turrets.
- When using this syntax, if target is out of possible view, the turret will move to its limit and get stuck there, with blocked input.
since arma3 2.08
vehicle lockCameraTo [target, turretPath, temporary]
Parameters:
vehicle: Object - UAVtarget: Object or PositionASL - use objNull to unlockturretPath: Turret Path - path to the turret with required cameratemporary: 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.Returns: Nothing
Note
This syntax also works with non-stabilized turrets, unlike #Syntax 1.
uav lockCameraTo [cursorObject, [0,0]];
uav lockCameraTo [objNull, [0,0]]; // unlocks the turret
vehicle player lockCameraTo [enemyTarget, vehicle player unitTurret player, false];
lockedCameraTo · camTarget · camSetTarget · camPrepareTarget · directionStabilizationEnabled · enableDirectionStabilization
The vehicle has to have a stabilized optic for this command to work with ASL position.