setGroupIcon: Difference between revisions

From Bohemia Interactive Community
(removed confusing examples)
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by 2 users not shown)
Line 15: Line 15:
|gr1= High Command
|gr1= High Command


|descr= Sets group icon properties.
|descr= Sets group icon properties. Since Arma 3 v2.22 the offset can be set separately for 2d and 3d.


|s1= group [[setGroupIcon]] [id, icon, offset]
|s1= group [[setGroupIcon]] [id, icon, offset]
Line 25: Line 25:
|p3= icon: [[String]] - class name of desired icon from CfgGroupIcons
|p3= icon: [[String]] - class name of desired icon from CfgGroupIcons


|p4= offset: [[Array]] - (Optional, default [0,0]) X and Y offsets of the icon in form [offsetX, offsetY]
|p4= offset: [[Array]] - (Optional, default [0,0]) X and Y offsets of the icon in form [offsetX, offsetY, (offsetX3d), (offsetY3d)]


|r1= [[Nothing]]
|r1= [[Nothing]]
Line 36: Line 36:
</sqf>
</sqf>


|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]]
|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIcons]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]]
}}
}}

Latest revision as of 00:11, 30 October 2025

Hover & click on the images for description

Description

Description:
Sets group icon properties. Since Arma 3 v2.22 the offset can be set separately for 2d and 3d.
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, (offsetX3d), (offsetY3d)]
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.
Only post proven facts here! Add Note