countSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(modified syntax, added example, see also)
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Number]] <nowiki>=</nowiki> side '''countSide''' arrayName|= Syntax
| side '''countSide''' arrayName|= Syntax


|p1= side: [[Side]] |= Parameter 1
|p1= side: [[Side]] |= Parameter 1


|p2= arrayName: [[Array]] |= Parameter 2
|p2= arrayName: [[Array]] of [[Object]]s |= Parameter 2


| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_num<nowiki>=</nowiki>west countSide list _triggerOne</pre> |= Example 1
|x1= <code>_num = [[west]] [[countSide]] [[list]] _triggerOne;</code> |= Example 1
 
|x2= <code>_numCivPlayable = [[civilian]] [[countSide]] [[playableUnits]];</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[countFriendly]], [[countEnemy]], [[countUnknown]] |= See also
| [[count]], [[countFriendly]], [[countEnemy]], [[countUnknown]] |= See also


}}
}}

Revision as of 18:48, 15 March 2014

Hover & click on the images for description

Description

Description:
Count how many units in the array belong to given side.
Groups:
Uncategorised

Syntax

Syntax:
side countSide arrayName
Parameters:
side: Side
arrayName: Array of Objects
Return Value:
Number

Examples

Example 1:
_num = west countSide list _triggerOne;
Example 2:
_numCivPlayable = civilian countSide playableUnits;

Additional Information

See also:
countcountFriendlycountEnemycountUnknown

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

Notes

Bottom Section