{"name":"camCommand","title":"camCommand","type":"command","url":"https://community.bistudio.com/wiki/camCommand","revid":369082,"updated":"2024-09-02T20:36:38Z","groups":["Camera Control"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Executes a command on the given *camera / actor* object. Known commands:\n\n| All cameras | \"Camera\" | \"Seagull\" | \"CamCurator\" |\n|---|---|---|---|\n| - `\"manual on\"`<br>- `\"manual off\"` | - `\"inertia on\"`<br>- `\"inertia off\"` | - `\"landed\"` lands the seagull<br>- `\"airborne\"` makes the seagull fly | - `\"maxPitch (x)\"` (number, in degrees)<br>- `\"minPitch (x)\"` (number, in degrees)<br>- `\"speedDefault (x)\"` (number)<br>- `\"speedMax (x)\"` (number)<br>- `\"ceilingHeight (x)\"` (number, in meters, ASL)<br>- `\"atl (x)\"` (on/off)<br>- `\"surfaceSpeed (x)\"` (on/off) |\n\n> [!NOTE]\n> The camCommand effect is immediate and does not need camCommit/camCommitPrepared.","syntaxes":[{"syntax":"camera camCommand command","params":[{"name":"camera","type":"Object","description":"see camCreate","type_expr":"Object"},{"name":"command","type":"String","description":"see description","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"camera"},"right":{"text":"command"}}],"examples":[{"code":["_camera camCommand \"manual on\";"]},{"code":["private _camera = \"CamCurator\" camCreate [0,0,0];\n_camera camCommand \"maxPitch 89\";\n_camera camCommand \"minPitch -89\";\n_camera camCommand \"speedDefault 0.1\";\n_camera camCommand \"speedMax 2\";\n_camera camCommand \"ceilingHeight 5000\";\n_camera camCommand \"atl off\";\n_camera camCommand \"surfaceSpeed off\";"]}],"see_also":["cameraEffect","camCreate","camCommit"]}