countSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Command|=
{{Command|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |=
| ofp |= Game name


|1.00|=
|1.00|= Game version


|arg= global |=
|arg= global |= Arguments in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Count how many units in the array belong to given side. |=
| Count how many units in the array belong to given side. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| side '''countSide''' array |=
| side'''countSide''' array |= Syntax


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


|p2= array: [[Type Array]] - array with elements of
|p2= array: [[Type Array]] - array with elements of type [[Object]] |= Parameter 2
type Object |=


| [[Integer]] |=
| [[Integer]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>west countSide list triggerOne</code> |=
|x1= <pre>west countSide list triggerOne</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
Line 33: Line 34:
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|COUNTSIDE]]
[[Category:Scripting Commands|COUNTSIDE]]

Revision as of 23:05, 1 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
sidecountSide array
Parameters:
side: Side
array: Type Array - array with elements of type Object
Return Value:
Integer

Examples

Example 1:
west countSide list triggerOne

Additional Information

See also:
countFriendlycountEnemycountUnknown

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