BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
|r1= | |r1= | ||
* [[Array]] of [[String | * [[Array]] of [[String]]s | ||
* [[Array]] of [[Side | * [[Array]] of [[Side]]s | ||
* [[Number]] - an index | * [[Number]] - an index | ||
|x1= < | |x1= <sqf>call BIS_fnc_getFactions; // returns all factions</sqf> | ||
|x2= < | |x2= <sqf>[] call BIS_fnc_getFactions; // same as Example 1</sqf> | ||
|x3= < | |x3= <sqf>[player] call BIS_fnc_getFactions; // returns index of player's faction</sqf> | ||
|x4= < | |x4= <sqf>["BLU_F"] call BIS_fnc_getFactions; // returns index of given faction</sqf> | ||
|x5= < | |x5= <sqf>[[]] call BIS_fnc_getFactions; // will return all faction sides</sqf> | ||
|x6= < | |x6= <sqf>[[player]] call BIS_fnc_getFactions; // will return player's side</sqf> | ||
|seealso= [[faction]] [[side]] | |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