{"name":"commandFollow","operator":null,"title":"commandFollow","type":"command","url":"https://community.bistudio.com/wiki/commandFollow","revid":370900,"updated":"2025-02-21T10:44:32Z","groups":["Unit Control"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Order the given unit(s) to follow another from his own group (via radio).\nIt can also be used to resume unit formation after e.g doStop.","syntaxes":[{"syntax":"unit commandFollow unitLead","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object or Array of Objects","optional":false,"default":null,"description":null,"types":["Object","Array"],"since":null,"text":"unit: Object or Array of Objects"},{"name":"unitLead","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitLead: Object"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object","Array"]},"right":{"text":"unitLead","types":["Object"]}}],"examples":[{"text":"```sqf\n_soldier1 commandFollow _soldier2;\n```","code":["_soldier1 commandFollow _soldier2;"]},{"text":"```sqf\n(units group _leader - [_leader]) commandFollow _leader; // returns all the units (but the leader) to formation\n```","code":["(units group _leader - [_leader]) commandFollow _leader; // returns all the units (but the leader) to formation"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["doFollow","formationLeader","formLeader","isFormationLeader","leader","selectLeader","setLeader"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Control","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}