setGroupIconsVisible: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (changed return value)
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(58 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| Sets if group icons added with [[addGroupIcon]] are visible on map and in the HUD. |DESCRIPTION=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''setGroupIconsVisible''' [showOnMap, showOnHUD] |SYNTAX=
|game4= arma3
|version4= 0.50


|p1= [showOnMap, showOnHUD]: [[Array]] |PARAMETER1=  
|eff= local


|p2= showOnMap: [[Boolean]] - [[true]] to show on map. Default - [[false]] |PARAMETER2=  
|gr1= High Command


|p3= showOnHUD: [[Boolean]] - [[true]] to show on HUD. Default - [[false]] |PARAMETER3=
|descr= Sets if group icons added with [[addGroupIcon]] are visible on map and in the HUD.


| [[objNull]] |RETURNVALUE=
|s1= [[setGroupIconsVisible]] [showOnMap, showOnHUD]


|p1= showOnMap: [[Boolean]] - [[true]] to show on map. Default is [[false]]


|x1= <code>[[setGroupIconsVisible]] [true, true]; // Show markers on map and on player HUD
|p2= showOnHUD: [[Boolean]] - [[true]] to show on HUD. Default is [[false]]
[[setGroupIconsVisible]] [true, false]; // Show only 2D
[[setGroupIconsVisible]] [false, false]; // Don't show</code>|EXAMPLE1=


____________________________________________________________________________________________
|r1= [[Nothing]] (prior to {{arma3}} v1.94 this command returned [[Object]] of [[objNull|null]] value)


| [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]] |SEEALSO=
|x1= <sqf>
setGroupIconsVisible [true, true];
(group player) addGroupIcon ["b_inf", [0, 0]];
</sqf>


| |MPBEHAVIOUR=  
|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]]
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= Larrow
<!-- Note Section BEGIN -->
|timestamp= 20220206095920
 
|text= If enabling for MARTA (Military Symbols) and using teamSwitch this command needs to be run again once switched to the new unit.
<!-- Note Section END -->
Possibly do it in a mission eventHandler of TeamSwitch.
</dl>
}}
 
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

Hover & click on the images for description

Description

Description:
Sets if group icons added with addGroupIcon are visible on map and in the HUD.
Groups:
High Command

Syntax

Syntax:
setGroupIconsVisible [showOnMap, showOnHUD]
Parameters:
showOnMap: Boolean - true to show on map. Default is false
showOnHUD: Boolean - true to show on HUD. Default is false
Return Value:
Nothing (prior to Arma 3 v1.94 this command returned Object of null value)

Examples

Example 1:
setGroupIconsVisible [true, true]; (group player) addGroupIcon ["b_inf", [0, 0]];

Additional Information

See also:
addGroupIcon clearGroupIcons getGroupIcon getGroupIconParams groupIconSelectable groupIconsVisible onGroupIconClick removeGroupIcon setGroupIcon setGroupIconParams setGroupIconsSelectable

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Larrow - c
Posted on Feb 06, 2022 - 09:59 (UTC)
If enabling for MARTA (Military Symbols) and using teamSwitch this command needs to be run again once switched to the new unit. Possibly do it in a mission eventHandler of TeamSwitch.