BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Gets list and sides of current factions. |= | | Gets list and sides of current factions. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [parameter] call [[BIS_fnc_getFactions]] |= | | [parameter] call [[BIS_fnc_getFactions]] |SYNTAX= | ||
|p1= parameter: | |p1= parameter: | ||
Line 21: | Line 21: | ||
* [[Array]] of [[String|Strings]] | * [[Array]] of [[String|Strings]] | ||
* [[Array]] of [[Side|Sides]] | * [[Array]] of [[Side|Sides]] | ||
* [[Number]] - an index |= | * [[Number]] - an index |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 37: | Line 37: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[faction]], [[side]] |= | | [[faction]], [[side]] |SEEALSO= | ||
}} | }} | ||
Revision as of 11:28, 7 April 2019
Description
- Description:
- Gets list and sides of current factions.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [parameter] call BIS_fnc_getFactions
- Parameters:
- parameter:
- Return Value:
Examples
- Example 1:
call BIS_fnc_getFactions; // returns all factions
- Example 2:
[] call BIS_fnc_getFactions; // same as Example 1
- Example 3:
[player] call BIS_fnc_getFactions; // returns index of player's faction
- Example 4:
["BLU_F"] call BIS_fnc_getFactions; // returns index of given faction
- Example 5:
[[]] call BIS_fnc_getFactions; // will return all faction sides
- Example 6:
[[player]] call BIS_fnc_getFactions; // will return player's side
Additional Information
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