BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 31: | Line 31: | ||
|x1= <sqf>call BIS_fnc_getFactions; // returns all factions</sqf> | |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= <sqf>["BLU_F"] call BIS_fnc_getFactions; // returns index of given faction</sqf> | |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