faction: Difference between revisions

From Bohemia Interactive Community
(Add latest factions. TODO: present them better (table?))
m (added game names)
Line 10: Line 10:
| Gets unit faction. Factions are defined under ''CfgFactionClasses''. If the given faction is not defined, the command returns empty string. Standard Factions include:<br>
| Gets unit faction. Factions are defined under ''CfgFactionClasses''. If the given faction is not defined, the command returns empty string. Standard Factions include:<br>


{{GVI|arma2|1.00}}
{{GVI|arma2|1.00}} '''Arma 2'''
* West: "USMC", "CDF"
* West: "USMC", "CDF"
* East: "RU", "INS"
* East: "RU", "INS"
Line 16: Line 16:
* Civ: "CIV", "CIV_RU"
* Civ: "CIV", "CIV_RU"


{{GVI|arma2oa|1.62}}
{{GVI|arma2oa|1.62}} '''Arma 2 - Operation Arrowhead'''
* West: "BIS_US", "BIS_CZ", "BIS_GER"
* West: "BIS_US", "BIS_CZ", "BIS_GER"
* East: "BIS_TK", "BIS_TK_INS"
* East: "BIS_TK", "BIS_TK_INS"
Line 28: Line 28:
* Guer: "PMC_BAF"
* Guer: "PMC_BAF"


{{GVI|arma3|1.00}}
{{GVI|arma3|1.00}} '''Arma 3'''
* West: "BLU_F" (NATO), "BLU_G_F" (FIA)
* West: "BLU_F" (NATO), "BLU_G_F" (FIA)
* East: "OPF_F" (CSAT), "OPF_G_F" (FIA)
* East: "OPF_F" (CSAT), "OPF_G_F" (FIA)
Line 34: Line 34:
* Civ: "CIV_F" (Civilians)
* Civ: "CIV_F" (Civilians)


{{GVI|arma3|1.62}} '''APEX'''
{{GVI|arma3|1.62}} '''Arma 3 - APEX'''
* West: "BLU_T_F" (Pacific NATO), "BLU_CTRG_F" (Pacific CTRG), "BLU_GEN_F" (Gendarmerie)
* West: "BLU_T_F" (Pacific NATO), "BLU_CTRG_F" (Pacific CTRG), "BLU_GEN_F" (Gendarmerie)
* East: "OPF_T_F"
* East: "OPF_T_F"
* Guer: "IND_C_F" (Syndikat)
* Guer: "IND_C_F" (Syndikat)


'''Laws of War DLC'''
'''Arma 3 - Laws of War DLC'''
* "CIV_IDAP_F"
* "CIV_IDAP_F"



Revision as of 15:52, 26 March 2018

Hover & click on the images for description

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:
Logo A2.png 1.00 Arma 2
  • West: "USMC", "CDF"
  • East: "RU", "INS"
  • Guer: "GUE"
  • Civ: "CIV", "CIV_RU"
A2 OA Logo.png 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"
Arma 3 logo black.png 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 logo black.png 1.62 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)
Arma 3 - Laws of War DLC
  • "CIV_IDAP_F"
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