BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1") |
||
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= <code>[] call BIS_fnc_getFactions; | |x2= <code>[] call BIS_fnc_getFactions; // same as {{HashLink|#Example 1}}</code> | ||
|x3= <code>[<nowiki/>[[player]]] [[call]] [[BIS_fnc_getFactions]]; | |x3= <code>[<nowiki/>[[player]]] [[call]] [[BIS_fnc_getFactions]]; // returns index of player's faction</code> | ||
|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= <code><nowiki>[[]]</nowiki> [[call]] [[BIS_fnc_getFactions]]; | |x5= <code><nowiki>[[]]</nowiki> [[call]] [[BIS_fnc_getFactions]]; // will return all faction sides</code> | ||
|x6= <code><nowiki>[[</nowiki>[[player]]]] [[call]] [[BIS_fnc_getFactions]]; | |x6= <code><nowiki>[[</nowiki>[[player]]]] [[call]] [[BIS_fnc_getFactions]]; // will return player's side</code> | ||
|seealso= [[faction]] [[side]] | |seealso= [[faction]] [[side]] | ||
}} | }} |
Revision as of 11:02, 13 July 2022
Description
Syntax
- Syntax:
- [parameter] call BIS_fnc_getFactions
- Parameters:
- parameter:
- Return Value:
Examples
- Example 1:
- 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:
- 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