{"name":"lockedCameraTo","operator":null,"title":"lockedCameraTo","type":"command","url":"https://community.bistudio.com/wiki/lockedCameraTo","revid":378357,"updated":"2026-04-02T16:48:58Z","groups":["Camera Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.08"}],"since":{"game":"arma3","name":"Arma 3","version":"2.08"},"arma3_since":"2.08","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Return the turret lock target.\n\n> [!NOTE]\n> The command is local to the **turret**, not the vehicle.","syntaxes":[{"syntax":"vehicle lockedCameraTo turretPath","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"turretPath","type":null,"optional":false,"default":null,"description":"Turret Path. Use an empty array to select the gunner's turret by default","types":["Turret Path"],"since":null,"text":"turretPath: Turret Path. Use an empty array to select the gunner's turret by default"}],"returns":{"type":"Can be one of:","types":[],"description":"Nothing - not locked - Object - if locked to an object - PositionASL - if locked to a position","text":"Can be one of:\n- Nothing - not locked\n- Object - if locked to an object\n- PositionASL - if locked to a position"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"turretPath","types":["Turret Path"]}}],"examples":[{"text":"```sqf\nvehicle player lockedCameraTo [];\n```","code":["vehicle player lockedCameraTo [];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lockCameraTo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Camera Control","Introduced with Arma 3 version 2.08","Scripting Commands"]}