BIS fnc getFactions: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
Lou Montana (talk | contribs) m (Text replacement - "\{\{codecomment *\| *\/\/ ([a-zA-Z _.:-]+) *\}\}" to "{{cc|$1}}") |
||
Line 22: | Line 22: | ||
* [[Number]] - an index | * [[Number]] - an index | ||
|x1= <code>[[call]] [[BIS_fnc_getFactions]]; {{ | |x1= <code>[[call]] [[BIS_fnc_getFactions]]; {{cc|returns all factions}}</code> | ||
|x2= <code>[] [[call]] [[BIS_fnc_getFactions]]; {{codecomment|// same as ''Example 1''}}</code> | |x2= <code>[] [[call]] [[BIS_fnc_getFactions]]; {{codecomment|// same as ''Example 1''}}</code> | ||
Line 28: | Line 28: | ||
|x3= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_getFactions]]; {{codecomment|// returns index of player's faction}}</code> | |x3= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_getFactions]]; {{codecomment|// returns index of player's faction}}</code> | ||
|x4= <code>["BLU_F"] [[call]] [[BIS_fnc_getFactions]]; {{ | |x4= <code>["BLU_F"] [[call]] [[BIS_fnc_getFactions]]; {{cc|returns index of given faction}}</code> | ||
|x5= <code><nowiki>[[]]</nowiki> [[call]] [[BIS_fnc_getFactions]]; {{ | |x5= <code><nowiki>[[]]</nowiki> [[call]] [[BIS_fnc_getFactions]]; {{cc|will return all faction sides}}</code> | ||
|x6= <code><nowiki>[[</nowiki>[[player]]]] [[call]] [[BIS_fnc_getFactions]]; {{codecomment|// will return player's side}}</code> | |x6= <code><nowiki>[[</nowiki>[[player]]]] [[call]] [[BIS_fnc_getFactions]]; {{codecomment|// will return player's side}}</code> |
Revision as of 15:37, 7 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Sides
Syntax
- Syntax:
- Syntax needed
- Parameters:
- parameter:
- Return Value:
- Return value needed
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
- See also:
- See also needed
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