{"name":"moveToCompleted","title":"moveToCompleted","type":"command","url":"https://community.bistudio.com/wiki/moveToCompleted","revid":369921,"updated":"2024-10-19T12:27:30Z","groups":["Unit Control"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","description":"Check if latest low level moveTo command is finished. Returns true if given AI pilot unit state == COMPLETED","syntaxes":[{"syntax":"moveToCompleted person","params":[{"name":"person","type":"Object","type_expr":"Object"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"person"}}],"examples":[{"code":["_isCompleted = moveToCompleted _unit;"]}],"see_also":["moveTo","moveToFailed"],"notes":[{"user":"DreadedEntity","date":"2022-04-02T20:31:47Z","text":"This command can also check the status of doMove and commandMove (A3 2.08.149102)\nThis is handy to make your script wait until a unit has moved to some position:\n\n```sqf\nwaitUntil {moveToCompleted _unit};\n```"}]}