setGroupIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1= High Command |GROUP1=
|gr1= High Command |GROUP1=
____________________________________________________________________________________________


| Sets group icon properties. |DESCRIPTION=
| Sets group icon properties. |DESCRIPTION=
____________________________________________________________________________________________


| group '''setGroupIcon''' [id, icon, offset] |SYNTAX=
| group '''setGroupIcon''' [id, icon, offset] |SYNTAX=
Line 32: Line 29:
_grp [[setGroupIcon]] [_icon, _iconclass];</code>|EXAMPLE1=  
_grp [[setGroupIcon]] [_icon, _iconclass];</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] |SEEALSO=  
| [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 03:30, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets group icon properties.
Groups:
High Command

Syntax

Syntax:
group setGroupIcon [id, icon, offset]
Parameters:
group: Group
[id, icon, offset] : Array
id: Number - The icon ID returned by addGroupIcon
icon: String - Class name of desired icon from CfgGroupIcons
offset: Array (Optional) - X and Y offsets of the icon in form [offsetX, offsetY]
Return Value:
Nothing

Examples

Example 1:
_target setGroupIcon [_icon, "hc_selectedEnemy"]; _target setGroupIcon [_icon, "flag"]; _grp setGroupIcon [_iconsize, _iconsizeclass, _offset]; _grp setGroupIcon [_newid, _icon, _offset]; _grp setGroupIcon [_icon, _iconclass];

Additional Information

See also:
addGroupIconclearGroupIconsgetGroupIcongetGroupIconParamsgroupIconSelectablegroupIconsVisibleonGroupIconClickremoveGroupIconsetGroupIconParamssetGroupIconsSelectablesetGroupIconsVisible

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

Notes

Bottom Section