countSide: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= | |||
____________________________________________________________________________________________ | |||
| ofp |= | |||
|1.00|= | |||
|arg= global |= | |||
____________________________________________________________________________________________ | |||
| Count how many units in the array belong to given side. |= | |||
____________________________________________________________________________________________ | |||
''' | | side '''countSide''' array |= | ||
|p1= side: [[Side]] |= | |||
|p2= array: [[Type Array]] - array with elements of | |||
type Object |= | |||
[[ | | [[Integer]] |= | ||
____________________________________________________________________________________________ | |||
|x1= <code>west countSide list triggerOne</code> |= | |||
____________________________________________________________________________________________ | |||
| [[countFriendly]], [[countEnemy]], [[countUnknown]] |= | |||
}} | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
[[Category:Scripting Commands|COUNTSIDE]] | |||
[[Category:Scripting Commands OFP 1.96|COUNTSIDE]] | |||
[[ | [[Category:Scripting Commands OFP 1.46|COUNTSIDE]] | ||
[[Category:Scripting Commands ArmA|COUNTSIDE]] |
Revision as of 23:04, 1 August 2006
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