faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
(TODO completed: table delivered and reinforced with Contact!)
Line 3: Line 3:


| arma2 |Game name=
| arma2 |Game name=
|arg= global|Multiplayer Arguments=
 
|arg= global |Multiplayer Arguments=


|1.00|Game version=
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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 were introduced in {{arma2}} and are defined under ''CfgFactionClasses''.
 
{{{!}} class{{=}}"bikitable" style{{=}}"font-size: 0.9em; white-space: nowrap"
! Side
! {{GVI|arma2|1.00}}
! {{GVI|arma2oa|1.50}}
! {{GVI|arma3|1.00}}
! {{GVI|arma3|1.62}} Apex
 
{{!}}-
{{!}} style{{=}}"text-align: center" {{!}} [[west]]/[[blufor]]
 
{{!}} <!-- Arma 2 -->
* USMC
* CDF
 
{{!}} <!-- Arma 2 OA -->
* BIS_US
* BIS_CZ
* BIS_GER
* BIS_BAF (BAF DLC)
 
{{!}} <!-- Arma 3 -->
* BLU_F (NATO)
* BLU_G_F (FIA)
* BLU_W_F (Woodland NATO, Contact DLC)
 
{{!}} <!-- Arma 3 Apex -->
* BLU_T_F (Pacific NATO)
* BLU_CTRG_F (Pacific CTRG)
* BLU_GEN_F (Gendarmerie)
 
{{!}}-
{{!}} style{{=}}"text-align: center" {{!}} [[east]]/[[opfor]]
 
{{!}} <!-- Arma 2 -->
* INS (ChDKZ)
* RU (Russia)
 
{{!}} <!-- Arma 2 OA -->
* BIS_TK (Takistan army)
* BIS_TK_INS (TK insurgents)
 
{{!}} <!-- Arma 3 -->
* OPF_F (Iranian CSAT)
* OPF_G_F (FIA)
* OPF_R_F (Spetznatz, Contact DLC)
 
{{!}} <!-- Arma 3 Apex -->
* OPF_T_F (Chinese CSAT)
 
{{!}}-
{{!}} style{{=}}"text-align: center" {{!}} [[resistance]]/<br>[[independent]]
 
{{!}} <!-- Arma 2 -->
* GUE (Guerilla)
 
{{!}} <!-- Arma 2 OA -->
* BIS_TK_GUE
* BIS_UN (United Nations)
* PMC_BAF (PMC DLC)


{{GVI|arma2|1.00}} '''Arma 2'''
{{!}} <!-- Arma 3 -->
* West: "USMC", "CDF"
* IND_F (AAF)
* East: "RU", "INS"
* IND_G_F (FIA)
* Guer: "GUE"
* IND_E_F (LDF, Contact DLC)
* Civ: "CIV", "CIV_RU"
* IND_L_F (Looters, Contact DLC)


{{GVI|arma2oa|1.62}} '''Arma 2 - Operation Arrowhead'''
{{!}} <!-- Arma 3 Apex -->
* West: "BIS_US", "BIS_CZ", "BIS_GER"
* IND_C_F (Syndikat)
* 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"
{{!}} style{{=}}"text-align: center" {{!}} [[civilian]]


'''Private Military Company DLC'''
{{!}} <!-- Arma 2 -->
* Guer: "PMC_BAF"
* CIV
* CIV_RU


{{GVI|arma3|1.00}} '''Arma 3'''
{{!}} <!-- Arma 2 OA -->
* West: "BLU_F" (NATO), "BLU_G_F" (FIA)
* BIS_TK_CIV
* East: "OPF_F" (CSAT), "OPF_G_F" (FIA)
* BIS_CIV_special
* Guer: "IND_F" (AAF), "IND_G_F" (FIA)
* Civ: "CIV_F" (Civilians)


'''Arma 3 - APEX'''
{{!}} <!-- Arma 3 -->
* West: "BLU_T_F" (Pacific NATO), "BLU_CTRG_F" (Pacific CTRG), "BLU_GEN_F" (Gendarmerie)
* CIV_F
* East: "OPF_T_F"
* CIV_IDAP_F (Laws of War DLC)
* Guer: "IND_C_F" (Syndikat)


{{GVI|arma3|1.76}} '''Arma 3 - Laws of War DLC'''
{{!}} style{{=}}"text-align: center" {{!}} <!-- Arma 3 Apex -->
* "CIV_IDAP_F"
-
{{!}}}


|DESCRIPTION=
{{Informative | If a unit's faction is not defined in its config, an empty string is returned.}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''faction''' unitName |SYNTAX=
| [[faction]] unitName |SYNTAX=


|p1= unitName: [[Object]] |PARAMETER1=
|p1= unitName: [[Object]] |PARAMETER1=
Line 56: Line 113:


| [[side]], [[Side]] |SEEALSO=
| [[side]], [[Side]] |SEEALSO=
}}
}}



Revision as of 22:17, 6 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.png1.00 A2 OA Logo.png1.50 Arma 3 logo black.png1.00 Arma 3 logo black.png1.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 DLC)
  • 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 DLC)
  • 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 DLC)
  • IND_L_F (Looters, Contact DLC)
  • 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 or on the Forums.
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