setGroupIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated SeeAlso)
 
(54 intermediate revisions by 7 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


| Set group icons properties. |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| group '''setGroupIcon''' properties |= Syntax
|game4= arma3
|version4= 0.50


|p1= group: [[Group]] -  |= PARAMETER1
|gr1= High Command


|p2= properties: [[Array]] -  |= PARAMETER2
|descr= Sets group icon properties.


|p3= |= PARAMETER3
|s1= group [[setGroupIcon]] [id, icon, offset]


| Nothing |= RETURNVALUE
|p1= group: [[Group]]


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


|x1= <pre>_target setGroupIcon [_icon,"hc_selectedEnemy"];
|p3= icon: [[String]] - class name of desired icon from CfgGroupIcons
_target setGroupIcon [_icon,"flag"];
_grp setGroupIcon [_iconsize,_iconsizeclass,_offset];
_grp setGroupIcon [_newid,_icon,_offset];
_grp setGroupIcon [_icon,_iconclass];</pre>|= EXAMPLE1


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


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


| |= MPBEHAVIOUR
|x1= <sqf>
____________________________________________________________________________________________
_target setGroupIcon [_icon, "hc_selectedEnemy"];
}}
_target setGroupIcon [_icon, "flag"];


<h3 style='display:none'>Notes</h3>
_group setGroupIcon [_icon, _iconsClass, _offset];
<dl class='command_description'>
</sqf>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIcons]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]]
</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 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