{"name":"moveTo","title":"moveTo","type":"command","url":"https://community.bistudio.com/wiki/moveTo","revid":379452,"updated":"2026-10-31T00:08:24Z","groups":["Unit 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":"global"},"description":"Low level command to person to move to given position. It is good to check first if AI pilot unit state is COMPLETED moveToCompleted first as this command will set unit into WAIT state waiting for instruction, but only if the unit has COMPLETED.","syntaxes":[{"syntax":"unit moveTo position","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"position","type":"PositionATL","type_expr":"PositionATL"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"position"}}],"examples":[{"code":["_myAgent moveTo getPosATL player;"]}],"see_also":["doMove","commandMove","setDestination","move","moveToCompleted","moveToFailed","addWaypoint"],"notes":[{"user":"Rübe","date":"2010-08-14T05:44:00Z","text":"moveTo is a low-level command used in FSM called with doFSM or commandFSM. See doFSM for more information about this. Use doMove everywhere else - even in FSM executed with execFSM."}]}