{"name":"setGroupIconsVisible","operator":null,"title":"setGroupIconsVisible","type":"command","url":"https://community.bistudio.com/wiki/setGroupIconsVisible","revid":369184,"updated":"2024-09-03T10:34:45Z","groups":["High Command"],"status":"ok","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Sets if group icons added with addGroupIcon are visible on map and in the HUD.","syntaxes":[{"syntax":"setGroupIconsVisible [showOnMap, showOnHUD]","since":null,"effect":null,"exec":null,"params":[{"name":"showOnMap","type":"Boolean","optional":false,"default":null,"description":"true to show on map. Default is false","types":["Boolean"],"since":null,"text":"showOnMap: Boolean - true to show on map. Default is false"},{"name":"showOnHUD","type":"Boolean","optional":false,"default":null,"description":"true to show on HUD. Default is false","types":["Boolean"],"since":null,"text":"showOnHUD: Boolean - true to show on HUD. Default is false"}],"returns":{"type":null,"types":["Nothing","Object","objNull"],"description":null,"text":"Nothing (prior to Arma 3 v1.94 this command returned Object of null value)"},"form":"unary","operator":null,"left":null,"right":{"text":"[showOnMap, showOnHUD]","types":["Array"]}}],"examples":[{"text":"```sqf\nsetGroupIconsVisible [true, true];\n(group player) addGroupIcon [\"b_inf\", [0, 0]];\n```","code":["setGroupIconsVisible [true, true];\n(group player) addGroupIcon [\"b_inf\", [0, 0]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addGroupIcon","clearGroupIcons","getGroupIcon","getGroupIconParams","groupIconSelectable","groupIconsVisible","onGroupIconClick","removeGroupIcon","setGroupIcon","setGroupIconParams","setGroupIconsSelectable"],"notes":[{"user":"Larrow","date":"2022-02-06T09:59:20Z","text":"If enabling for MARTA (Military Symbols) and using teamSwitch this command needs to be run again once switched to the new unit.\nPossibly do it in a mission eventHandler of TeamSwitch."}],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: High Command","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}