countSide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|COUNTSIDE]]
{{Command|=
[[Category:Scripting Commands OFP 1.96|COUNTSIDE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COUNTSIDE]]
[[Category:Scripting Commands ArmA|COUNTSIDE]]


| ofp |=


<h2 style="color:#000066">'''''side'' countSide ''array'''''</h2>
|1.00|=


|arg= global |=
____________________________________________________________________________________________


'''Operand types:'''
| Count how many units in the array belong to given side. |=
____________________________________________________________________________________________


'''side:''' [[Side]]
| side '''countSide''' array |=


'''array:''' [[Array]]
|p1= side: [[Side]] |=


'''Type of returned value:'''
|p2= array: [[Type Array]] -  array with elements of
type Object |=


[[Number]]
| [[Integer]] |=
____________________________________________________________________________________________
 
|x1= <code>west countSide list triggerOne</code> |=
____________________________________________________________________________________________


'''Description:'''
| [[countFriendly]], [[countEnemy]], [[countUnknown]] |=


Check how many vehicles belong to given '''side'''.
}}
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
[[Category:Scripting Commands|COUNTSIDE]]
 
[[Category:Scripting Commands OFP 1.96|COUNTSIDE]]
[[west]] '''countSide''' [[list]] triggerOne
[[Category:Scripting Commands OFP 1.46|COUNTSIDE]]
[[Category:Scripting Commands ArmA|COUNTSIDE]]

Revision as of 23:04, 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:
side countSide 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