faction: Difference between revisions

From Bohemia Interactive Community
(TODO completed: table delivered and reinforced with Contact!)
m (*Expansion)
Line 34: Line 34:
* BLU_F (NATO)
* BLU_F (NATO)
* BLU_G_F (FIA)
* BLU_G_F (FIA)
* BLU_W_F (Woodland NATO, Contact DLC)
* BLU_W_F (Woodland NATO, Contact Expansion)


{{!}} <!-- Arma 3 Apex -->
{{!}} <!-- Arma 3 Apex -->
Line 55: Line 55:
* OPF_F (Iranian CSAT)
* OPF_F (Iranian CSAT)
* OPF_G_F (FIA)
* OPF_G_F (FIA)
* OPF_R_F (Spetznatz, Contact DLC)
* OPF_R_F (Spetznatz, Contact Expansion)


{{!}} <!-- Arma 3 Apex -->
{{!}} <!-- Arma 3 Apex -->
Line 74: Line 74:
* IND_F (AAF)
* IND_F (AAF)
* IND_G_F (FIA)
* IND_G_F (FIA)
* IND_E_F (LDF, Contact DLC)
* IND_E_F (LDF, Contact Expansion)
* IND_L_F (Looters, Contact DLC)
* IND_L_F (Looters, Contact Expansion)


{{!}} <!-- Arma 3 Apex -->
{{!}} <!-- Arma 3 Apex -->

Revision as of 09:37, 7 September 2019

Hover & click on the images for description

Description

Description:
Gets unit faction. Factions were introduced in Arma 2 and are defined under CfgFactionClasses.
Side Logo A2.png 1.00 A2 OA Logo.png 1.50 Arma 3 logo black.png 1.00 Arma 3 logo black.png 1.62 Apex
west/blufor
  • USMC
  • CDF
  • BIS_US
  • BIS_CZ
  • BIS_GER
  • BIS_BAF (BAF DLC)
  • BLU_F (NATO)
  • BLU_G_F (FIA)
  • BLU_W_F (Woodland NATO, Contact Expansion)
  • BLU_T_F (Pacific NATO)
  • BLU_CTRG_F (Pacific CTRG)
  • BLU_GEN_F (Gendarmerie)
east/opfor
  • INS (ChDKZ)
  • RU (Russia)
  • BIS_TK (Takistan army)
  • BIS_TK_INS (TK insurgents)
  • OPF_F (Iranian CSAT)
  • OPF_G_F (FIA)
  • OPF_R_F (Spetznatz, Contact Expansion)
  • OPF_T_F (Chinese CSAT)
resistance/
independent
  • GUE (Guerilla)
  • BIS_TK_GUE
  • BIS_UN (United Nations)
  • PMC_BAF (PMC DLC)
  • IND_F (AAF)
  • IND_G_F (FIA)
  • IND_E_F (LDF, Contact Expansion)
  • IND_L_F (Looters, Contact Expansion)
  • IND_C_F (Syndikat)
civilian
  • CIV
  • CIV_RU
  • BIS_TK_CIV
  • BIS_CIV_special
  • CIV_F
  • CIV_IDAP_F (Laws of War DLC)

-

If a unit's faction is not defined in its config, an empty string is returned.
Groups:
Uncategorised

Syntax

Syntax:
faction unitName
Parameters:
unitName: Object
Return Value:
String

Examples

Example 1:
_playersFaction = faction player;

Additional Information

See also:
sideSide

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note

Notes

Tankbuster
Faction behaves slightly differently to side. Side can refer to the pilot or commander of a vehicle, but faction never changes. It always returns the 'country of manufacture'.

Bottom Section