hcLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatted notes)
m (Text replacement - "\| *p([0-9]+) *=([^↵]+) -↵" to "|p$1=$2")
 
(55 intermediate revisions by 3 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 [[High Command|high command]] 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>_leader = [[hcLeader]] groupName;</code>|= EXAMPLE1
|seealso= [[High Command]] [[hcAllGroups]] [[hcGroupParams]] [[hcRemoveAllGroups]] [[hcRemoveGroup]] [[hcSelected]] [[hcSelectGroup]] [[hcSetGroup]] [[hcShowBar]] [[hcShownBar]] [[onHCGroupSelectionChanged]]
 
____________________________________________________________________________________________
 
| [[High Command]], [[hcAllGroups]], [[hcGroupParams]], [[hcRemoveAllGroups]], [[hcRemoveGroup]], [[hcSelected]], [[hcSelectGroup]], [[hcSetGroup]], [[hcShowBar]], [[hcShownBar]], [[onHCGroupSelectionChanged]] |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<dl class='command_description'>
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on September 2, 2009
<dt><dt>
<dt class="note">[[User:Dimitri Harkov|Dimitri Harkov]] <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.
<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.


<!-- 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 Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12: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.