setGroupIcon

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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: Number - the icon ID returned by addGroupIcon
icon: String - class name of desired icon from CfgGroupIcons
offset: Array - (Optional, default [0,0]) 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"]; _group setGroupIcon [_icon, _iconsClass, _offset];

Additional Information

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

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