faction: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (TODO completed: table delivered and reinforced with Contact!) |
Lou Montana (talk | contribs) m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}") |
||
(33 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 | | |game1= arma2 | ||
|version1= 1.00 | |||
| | |game2= arma2oa | ||
|version2= 1.50 | |||
|1.00 | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
{{{!}} class | |arg= global | ||
|gr1= Object Manipulation | |||
|gr2= Sides | |||
|descr= Gets unit faction. Factions were introduced in {{arma2}} and are defined under ''CfgFactionClasses''. | |||
{{{!}} class="wikitable" style{{=}}"font-size: 0.9em; white-space: nowrap" | |||
! Side | ! Side | ||
! {{GVI|arma2|1.00}} | ! {{GVI|arma2|1.00}} | ||
! {{GVI|arma2oa|1.50}} | ! {{GVI|arma2oa|1.50}} | ||
! {{GVI|arma3|1. | ! {{GVI|arma3|1.96}} | ||
{{!}}- | {{!}}- | ||
{{!}} style | {{!}} style="text-align: center" {{!}} [[west]]/[[blufor]] | ||
{{!}} <!-- Arma 2 --> | {{!}} <!-- Arma 2 --> | ||
Line 34: | Line 43: | ||
* BLU_F (NATO) | * BLU_F (NATO) | ||
* BLU_G_F (FIA) | * BLU_G_F (FIA) | ||
* | * BLU_T_F (Pacific NATO, Apex Expansion) | ||
* BLU_CTRG_F (Pacific CTRG, Apex Expansion) | |||
* BLU_GEN_F (Gendarmerie, Apex Expansion) | |||
* BLU_W_F (Woodland NATO, Contact Expansion) | |||
* BLU_CTRG_F (Pacific CTRG) | |||
* BLU_GEN_F (Gendarmerie) | |||
{{!}}- | {{!}}- | ||
Line 55: | Line 62: | ||
* OPF_F (Iranian CSAT) | * OPF_F (Iranian CSAT) | ||
* OPF_G_F (FIA) | * OPF_G_F (FIA) | ||
* | * OPF_T_F (Chinese CSAT, Apex Expansion) | ||
* OPF_R_F (Spetznatz, Contact Expansion) | |||
* | |||
{{!}}- | {{!}}- | ||
{{!}} style | {{!}} style="text-align: center" {{!}} [[resistance]]/<br>[[independent]] | ||
{{!}} <!-- Arma 2 --> | {{!}} <!-- Arma 2 --> | ||
Line 74: | Line 79: | ||
* IND_F (AAF) | * IND_F (AAF) | ||
* IND_G_F (FIA) | * IND_G_F (FIA) | ||
* IND_E_F (LDF, Contact | * IND_C_F (Syndikat, Apex Expansion) | ||
* IND_L_F (Looters, Contact | * IND_E_F (LDF, Contact Expansion) | ||
* IND_L_F (Looters, Contact Expansion) | |||
{{!}}- | {{!}}- | ||
{{!}} style | {{!}} style="text-align: center" {{!}} [[civilian]] | ||
{{!}} <!-- Arma 2 --> | {{!}} <!-- Arma 2 --> | ||
Line 94: | Line 97: | ||
* CIV_F | * CIV_F | ||
* CIV_IDAP_F (Laws of War DLC) | * CIV_IDAP_F (Laws of War DLC) | ||
{{!}}} | |||
{{ | {{Feature|informative|If a unit's faction is not defined in its config, an empty string is returned.}} | ||
|s1= [[faction]] unitName | |||
| [[ | |p1= unitName: [[Object]] | ||
| | |r1= [[String]] | ||
|x1= <sqf>private _playerFaction = faction player;</sqf> | |||
|x1= < | |||
| [[side]] | |seealso= [[side]] [[Side]] | ||
}} | }} | ||
{{Note | |||
|user= TankBuster | |||
|timestamp= 20100319165600 | |||
|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'. | |||
}} | |||
Latest revision as of 18:11, 15 March 2024
Description
- Description:
- Gets unit faction. Factions were introduced in Arma 2 and are defined under CfgFactionClasses.
Side 1.00 1.50 1.96 west/blufor - USMC
- CDF
- BIS_US
- BIS_CZ
- BIS_GER
- BIS_BAF (BAF DLC)
- BLU_F (NATO)
- BLU_G_F (FIA)
- BLU_T_F (Pacific NATO, Apex Expansion)
- BLU_CTRG_F (Pacific CTRG, Apex Expansion)
- BLU_GEN_F (Gendarmerie, Apex Expansion)
- BLU_W_F (Woodland NATO, Contact Expansion)
east/opfor - INS (ChDKZ)
- RU (Russia)
- BIS_TK (Takistan army)
- BIS_TK_INS (TK insurgents)
- OPF_F (Iranian CSAT)
- OPF_G_F (FIA)
- OPF_T_F (Chinese CSAT, Apex Expansion)
- OPF_R_F (Spetznatz, Contact Expansion)
resistance/
independent- GUE (Guerilla)
- BIS_TK_GUE
- BIS_UN (United Nations)
- PMC_BAF (PMC DLC)
- IND_F (AAF)
- IND_G_F (FIA)
- IND_C_F (Syndikat, Apex Expansion)
- IND_E_F (LDF, Contact Expansion)
- IND_L_F (Looters, Contact Expansion)
civilian - CIV
- CIV_RU
- BIS_TK_CIV
- BIS_CIV_special
- CIV_F
- CIV_IDAP_F (Laws of War DLC)
- Groups:
- Object ManipulationSides
Syntax
Examples
- Example 1:
Additional Information
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
- Posted on Mar 19, 2010 - 16:56 (UTC)
- 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'.