{"name":"doTarget","title":"doTarget","type":"command","url":"https://community.bistudio.com/wiki/doTarget","revid":379336,"updated":"2026-10-30T23:52:58Z","groups":["Unit 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":"global"},"description":"Order the given unit(s) to target the given target (without radio messages).\nTargeting can be stopped by\n\n```sqf\n_unit doWatch objNull;\n```\n\nor\n\n```sqf\n_unit commandWatch objNull;\n```","syntaxes":[{"syntax":"unit doTarget target","params":[{"name":"unit","type":"Object or Array of Objects","description":"a single unit or array of units","type_expr":"Object | Array<Object>"},{"name":"target","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"target"}}],"examples":[{"code":["_ESoldier1 doTarget _WSoldier1;"]}],"see_also":["assignedTarget","commandTarget","doWatch","doFire"],"notes":[{"user":"Joris","date":"2017-03-28T08:18:00Z","text":"Targeting may not work as expected when trying to target a unit on the same side (friendly)."}]}