BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1 = Sides |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 48: | Line 50: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:getFactions}}]] | [[Category:Functions|{{uc:getFactions}}]] | ||
[[Category:{{Name|arma2}}: Functions|{{uc:getFactions}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:getFactions}}]] |
Revision as of 01:30, 10 October 2020
Description
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