{"name":"setFormationTask","title":"setFormationTask","type":"command","url":"https://community.bistudio.com/wiki/setFormationTask","revid":379377,"updated":"2026-10-30T23:58:24Z","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":"Set the current task of the formation member.\n\n> [!NOTE]\n> This command is not available in Arma 2.","syntaxes":[{"syntax":"unit setFormationTask task","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"task","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"task"}}],"examples":[{"code":["_unit setFormationTask \"MOVE\";"]}],"see_also":["formationTask"],"notes":[{"user":"Donnervogel","date":"2007-03-02T15:57:00Z","text":"The argument for *task* can be any String value. This can effectively be used to store a property in String format an retrieve it with formationTask in FSM scripts. By using it outside of FSM scripts you're risking to get it overwritten by other running FSM scripts."}]}