faction

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Gets unit faction. Factions are defined under CfgFactionClasses. If the given faction is not defined, the command returns empty string. Standard Factions include:
Introduced with Arma 2 version 1.00
Arma 2
  • West: "USMC", "CDF"
  • East: "RU", "INS"
  • Guer: "GUE"
  • Civ: "CIV", "CIV_RU"
Introduced with Arma 2: Operation Arrowhead version 1.62
Arma 2 - Operation Arrowhead
  • West: "BIS_US", "BIS_CZ", "BIS_GER"
  • East: "BIS_TK", "BIS_TK_INS"
  • Guer: "BIS_TK_GUE", "BIS_UN"
  • Civ: "BIS_TK_CIV", "BIS_CIV_special"

British Armed Forces DLC

  • West: "BIS_BAF"

Private Military Company DLC

  • Guer: "PMC_BAF"
Introduced with Arma 3 version 1.00
Arma 3
  • West: "BLU_F" (NATO), "BLU_G_F" (FIA)
  • East: "OPF_F" (CSAT), "OPF_G_F" (FIA)
  • Guer: "IND_F" (AAF), "IND_G_F" (FIA)
  • Civ: "CIV_F" (Civilians)

Arma 3 - APEX

  • West: "BLU_T_F" (Pacific NATO), "BLU_CTRG_F" (Pacific CTRG), "BLU_GEN_F" (Gendarmerie)
  • East: "OPF_T_F"
  • Guer: "IND_C_F" (Syndikat)
Introduced with Arma 3 version 1.76
Arma 3 - Laws of War DLC
  • "CIV_IDAP_F"

Syntax

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

Examples

Example 1:
_playersFaction = faction player;

Additional Information

Multiplayer:
-
See also:
sideSide

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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