hcLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
m (Text replacement - "\| *p([0-9]+) *=([^↵]+) -↵" to "|p$1=$2")
 
(66 intermediate revisions by 9 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


| Returns group's HC commander. |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''hcLeader''' group |= Syntax
|game4= arma3
|version4= 0.50


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


|p2= |= PARAMETER2
|descr= Returns group's [[High Command|high command]] commander.


|p3= |= PARAMETER3
|s1= [[hcLeader]] group


| [[Object]] |= RETURNVALUE
|p1= group: [[Group]]
|r1= [[Object]]


|x1= <sqf>_leader = hcLeader groupName;</sqf>


|x1= <code>(example)</code>|= EXAMPLE1
|seealso= [[High Command]] [[hcAllGroups]] [[hcGroupParams]] [[hcRemoveAllGroups]] [[hcRemoveGroup]] [[hcSelected]] [[hcSelectGroup]] [[hcSetGroup]] [[hcShowBar]] [[hcShownBar]] [[onHCGroupSelectionChanged]]
}}


____________________________________________________________________________________________
<dl class="command_description">


| |= SEEALSO
<dt><dt>
<dd class="notedate">Posted on 2009-09-02</dd>
<dt class="note">[[User:Dimitri Harkov|Dimitri Harkov]]</dt>
<dd class="note">[[hcLeader]] returns 'NULL_OBJECT' if you use it on your HC commander's group in a HC setup with subordinates. It seems to work as expected if you don't use subordinates.


|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
</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|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:51, 26 March 2024

Hover & click on the images for description

Description

Description:
Returns group's high command commander.
Groups:
High Command

Syntax

Syntax:
hcLeader group
Parameters:
group: Group
Return Value:
Object

Examples

Example 1:
_leader = hcLeader groupName;

Additional Information

See also:
High Command hcAllGroups hcGroupParams hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar onHCGroupSelectionChanged

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
Posted on 2009-09-02
Dimitri Harkov
hcLeader returns 'NULL_OBJECT' if you use it on your HC commander's group in a HC setup with subordinates. It seems to work as expected if you don't use subordinates.