{"name":"faction","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"}],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"unary","operator":null,"left":null,"right":{"text":"unitName","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _playerFaction = faction player;\n```","code":["private _playerFaction = faction player;"]}],"multiplayer":null,"problems":null,"aliases":[],"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'."}],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Command Group: Sides","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}