setGroupIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
(updated SeeAlso)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|1.00
|version1= 1.00


|game2= arma2oa
|game2= arma2oa
Line 17: Line 17:
|descr= Sets group icon properties.
|descr= Sets group icon properties.


|s1= group '''setGroupIcon''' [id, icon, offset]
|s1= group [[setGroupIcon]] [id, icon, offset]


|p1= group: [[Group]]
|p1= group: [[Group]]
|p2= [id, icon, offset] : [[Array]]


|p3= id: [[Number]] - The icon ID returned by [[addGroupIcon]]
|p2= id: [[Number]] - the icon ID returned by [[addGroupIcon]]


|p4= icon: [[String]] - Class name of desired icon from CfgGroupIcons
|p3= icon: [[String]] - class name of desired icon from CfgGroupIcons


|p5= offset: [[Array]] (Optional) - 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]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_target [[setGroupIcon]] [_icon, "hc_selectedEnemy"];
|x1= <sqf>
_target [[setGroupIcon]] [_icon, "flag"];
_target setGroupIcon [_icon, "hc_selectedEnemy"];
_grp [[setGroupIcon]] [_iconsize, _iconsizeclass, _offset];
_target setGroupIcon [_icon, "flag"];
_grp [[setGroupIcon]] [_newid, _icon, _offset];
_grp [[setGroupIcon]] [_icon, _iconclass];</code>


|seealso= [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]]
_group setGroupIcon [_icon, _iconsClass, _offset];
</sqf>
 
|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIcons]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 07:10, 14 February 2023

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