{"name":"commandTarget","title":"commandTarget","type":"command","url":"https://community.bistudio.com/wiki/commandTarget","revid":379215,"updated":"2026-10-30T22:18:05Z","groups":["Groups"],"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 (via the radio). Command given to the player, puts a red square with words Target and Distance on player's HUD at target location. If player in vehicle and has radar facilities, it also adds target marker to the radar.","syntaxes":[{"syntax":"unit commandTarget target","params":[{"name":"unit","type":"Object or Array of Objects","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 commandTarget _WSoldier1;"]},{"code":["[_ESoldier1, _ESoldier2] commandTarget _WSoldier1;"]}],"multiplayer":"This command is only effective when used on local units. When used on a remote unit, this command will create radio dialogue on the machine the unit is local to, but the unit will not target the target.","see_also":["assignedTarget","doTarget"]}