BIS fnc playerSideFaction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s1= +" to "|s1= ")
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
|p1=side: [[Side]]
|p1=side: [[Side]]


|r1=[[String]] - CfgFactionClasses class
|r1= [[String]] - CfgFactionClasses class


|x1= <code>[[west]] [[call]] [[BIS_fnc_playerSideFaction]];</code>
|x1= <sqf>west call BIS_fnc_playerSideFaction;</sqf>


|seealso= [[side]]
|seealso= [[side]]
}}
}}

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