BIS fnc playerSideFaction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.06


| arma3 |= Game name
|gr1= Sides


|1.00|= Game version
|descr= Return representative faction of the given side. Faction of the first detected player is used.
____________________________________________________________________________________________


| <pre>/*
|s1= side call [[BIS_fnc_playerSideFaction]]


Description:
|p1=side: [[Side]]
Return representative faction of the given side.
Faction of the first detected player is used.


Parameter(s):
|r1= [[String]] - CfgFactionClasses class
0: SIDE


Returns:
|x1= <sqf>west call BIS_fnc_playerSideFaction;</sqf>
STRING - CfgFactionClasses class
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_playerSideFaction]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[side]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Sides|{{uc:playerSideFaction}}]]
[[Category:Functions|{{uc:playerSideFaction}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:playerSideFaction}}]]

Latest revision as of 15:43, 10 May 2022

Hover & click on the images for description

Description

Description:
Return representative faction of the given side. Faction of the first detected player is used.
Execution:
call
Groups:
Sides

Syntax

Syntax:
side call BIS_fnc_playerSideFaction
Parameters:
side: Side
Return Value:
String - CfgFactionClasses class

Examples

Example 1:
west call BIS_fnc_playerSideFaction;

Additional Information

See also:
side

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