BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(34 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= arma2 | |||
|version1= 1.00 | |||
| | |game2= arma2oa | ||
|version2= 1.50 | |||
|1.00 | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
|gr1= Sides | |||
|descr= Gets list and sides of current factions. | |||
|s1= [parameter] call [[BIS_fnc_getFactions]] | |||
| | |p1= parameter: | ||
* [[Nothing]] or empty [[Array]] - returns all factions | |||
* [[Object]] - returns index of the object side | |||
* [[Array]] - [[side]] of the first element is returned, others are ignored | |||
| | |r1= | ||
* [[Array]] of [[String]]s | |||
* [[Array]] of [[Side]]s | |||
* [[Number]] - an index | |||
| | |x1= <sqf>call BIS_fnc_getFactions; // returns all factions</sqf> | ||
| | |x2= <sqf>[] call BIS_fnc_getFactions; // same as Example 1</sqf> | ||
| | |x3= <sqf>[player] call BIS_fnc_getFactions; // returns index of player's faction</sqf> | ||
|x4= <sqf>["BLU_F"] call BIS_fnc_getFactions; // returns index of given faction</sqf> | |||
< | |x5= <sqf>[[]] call BIS_fnc_getFactions; // will return all faction sides</sqf> | ||
< | |x6= <sqf>[[player]] call BIS_fnc_getFactions; // will return player's side</sqf> | ||
</ | |||
|seealso= [[faction]] [[side]] | |||
}} | |||
[[ | |||
[[ | |||
Latest revision as of 12:00, 13 July 2022
Description
Syntax
- Syntax:
- [parameter] call BIS_fnc_getFactions
- Parameters:
- parameter:
- Return Value:
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- Example 5:
- Example 6:
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