countSide: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
(modified syntax, added example, see also) |
||
Line 12: | Line 12: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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= < | |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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Variables
- Command Group: Sides
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters