{"name":"camDestroy","title":"camDestroy","type":"command","url":"https://community.bistudio.com/wiki/camDestroy","revid":369081,"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":"Destroys camera object created with camCreate. This command doesn't need camCommit.\n\n> [!IMPORTANT]\n> Destroying camera object does not terminate camera effect automatically, use cameraEffect prior to deleting the camera (see Example 2)","syntaxes":[{"syntax":"camDestroy object","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"object"}}],"examples":[{"code":["camDestroy _cam;"]},{"code":["_cam cameraEffect [\"terminate\",\"back\"];\ncamDestroy _cam;"]}],"see_also":["camCreate","cameraEffect"]}