{"name":"formation","operator":null,"title":"formation","type":"command","url":"https://community.bistudio.com/wiki/formation","revid":348443,"updated":"2023-11-08T13:00:16Z","groups":["Groups"],"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":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns the current formation of a group.","syntaxes":[{"syntax":"formation target","since":null,"effect":null,"exec":null,"params":[{"name":"target","type":"Object or Group","optional":false,"default":null,"description":null,"types":["Object","Group"],"since":null,"text":"target: Object or Group"}],"returns":{"type":"String","types":["String"],"description":"can return: - \"COLUMN\" - \"STAG COLUMN\" - \"WEDGE\" - \"ECH LEFT\" - \"ECH RIGHT\" - \"VEE\" - \"LINE\" - \"FILE\" - \"DIAMOND\"","text":"String - can return:\n- \"COLUMN\"\n- \"STAG COLUMN\"\n- \"WEDGE\"\n- \"ECH LEFT\"\n- \"ECH RIGHT\"\n- \"VEE\"\n- \"LINE\"\n- \"FILE\"\n- \"DIAMOND\""},"form":"unary","operator":null,"left":null,"right":{"text":"target","types":["Object","Group"]}}],"examples":[{"text":"```sqf\nif (formation group player == \"wedge\") then { hint \"this is the default formation\" };\n```","code":["if (formation group player == \"wedge\") then { hint \"this is the default formation\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["2D Editor: Waypoints","formLeader","setFormation"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Groups","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"]}