{"name":"faction","title":"faction","type":"command","url":"https://community.bistudio.com/wiki/faction","revid":370764,"updated":"2025-02-10T08:05:51Z","groups":["Object Manipulation","Sides"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Gets unit faction. Factions were introduced in Arma 2 and are defined under *CfgFactionClasses*.\n\n| Side | Arma 2 v1.00 | Arma 2: Operation Arrowhead v1.50 | Arma 3 v1.96 |\n|---|---|---|---|\n| west/blufor | - `USMC`<br>- `CDF` | - `BIS_US`<br>- `BIS_CZ`<br>- `BIS_GER`<br>- `BIS_BAF` (BAF DLC) | - `BLU_F` (NATO)<br>- `BLU_G_F` (FIA)<br>- `BLU_T_F` (Pacific NATO, Apex Expansion)<br>- `BLU_CTRG_F` (Pacific CTRG, Apex Expansion)<br>- `BLU_GEN_F` (Gendarmerie, Apex Expansion)<br>- `BLU_W_F` (Woodland NATO, Contact Expansion) |\n| east/opfor | - `INS` (ChDKZ)<br>- `RU` (Russia) | - `BIS_TK` (Takistan army)<br>- `BIS_TK_INS` (TK insurgents) | - `OPF_F` (Iranian CSAT)<br>- `OPF_G_F` (FIA)<br>- `OPF_T_F` (Chinese CSAT, Apex Expansion)<br>- `OPF_R_F` (Spetznatz, Contact Expansion) |\n| resistance/<br>independent | - `GUE` (Guerilla) | - `BIS_TK_GUE`<br>- `BIS_UN` (United Nations)<br>- `PMC_BAF` (PMC DLC) | - `IND_F` (AAF)<br>- `IND_G_F` (FIA)<br>- `IND_C_F` (Syndikat, Apex Expansion)<br>- `IND_E_F` (LDF, Contact Expansion)<br>- `IND_L_F` (Looters, Contact Expansion) |\n| civilian | - `CIV`<br>- `CIV_RU` | - `BIS_TK_CIV`<br>- `BIS_CIV_special` | - `CIV_F`<br>- `CIV_IDAP_F` (Laws of War DLC) |\n\n> [!NOTE]\n> If a unit's faction is not defined in its config, an empty string is returned.","syntaxes":[{"syntax":"faction unitName","params":[{"name":"unitName","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"unitName"}}],"examples":[{"code":["private _playerFaction = faction player;"]}],"see_also":["side","Side"],"notes":[{"user":"Tankbuster","date":"2010-03-19T16:56:00Z","text":"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'."}]}