{"name":"camCommitPrepared","title":"camCommitPrepared","type":"command","url":"https://community.bistudio.com/wiki/camCommitPrepared","revid":349291,"updated":"2023-11-08T14:51:57Z","groups":["Camera Control"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Smoothly conducts the changes that were assigned to a camera within the given time. If the time is set to zero, the changes are done immediately.\nThis command is for use with `camPrepareXXX` commands. For the normal cam command use camCommit.","syntaxes":[{"syntax":"camera camCommitPrepared time","params":[{"name":"camera","type":"Object","description":"object of type \"camera\"","type_expr":"Object"},{"name":"time","type":"Number","description":"time in seconds in which the changes shall be done","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"camera"},"right":{"text":"time"}}],"examples":[{"code":["// create a camera object\n_cam = \"camera\" camCreate [5600, 4800, 10];\n_cam camPrepareTarget player;\n_cam cameraEffect [\"internal\", \"BACK\"];\n_cam camCommitPrepared 0;\n\n// smoothly move the camera to its new position in 6 seconds\n_cam camPreparePos [5680, 4720, 20];\n_cam camCommitPrepared 6;\nwaitUntil { camCommitted _cam };\n\n// proceed"]}],"see_also":["camCommitted","camCommit"]}