faction: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) m (global args) |
Lou Montana (talk | contribs) (Add latest factions. TODO: present them better (table?)) |
||
Line 9: | Line 9: | ||
| 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}} | |||
* West: "USMC", "CDF" | * West: "USMC", "CDF" | ||
* East: "RU", "INS" | * East: "RU", "INS" | ||
* Guer: "GUE" | * Guer: "GUE" | ||
* Civ: "CIV", "CIV_RU" | * Civ: "CIV", "CIV_RU" | ||
{{GVI|arma2oa|1.62}} | |||
* 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" | ||
* Guer: "BIS_TK_GUE", "BIS_UN" | * Guer: "BIS_TK_GUE", "BIS_UN" | ||
* Civ: "BIS_TK_CIV", "BIS_CIV_special" | * Civ: "BIS_TK_CIV", "BIS_CIV_special" | ||
''' | '''British Armed Forces DLC''' | ||
* West: "BIS_BAF" | * West: "BIS_BAF" | ||
''' | |||
'''Private Military Company DLC''' | |||
* Guer: "PMC_BAF" | * Guer: "PMC_BAF" | ||
{{GVI|arma3|1.00}} | |||
* 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) | ||
* Guer: "IND_F" (AAF), "IND_G_F" (FIA) | * Guer: "IND_F" (AAF), "IND_G_F" (FIA) | ||
* Civ: "CIV_F" (Civilians) |= Description | * Civ: "CIV_F" (Civilians) | ||
{{GVI|arma3|1.62}} '''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) | |||
'''Laws of War DLC''' | |||
* "CIV_IDAP_F" | |||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''faction''' unitName |= Syntax | ||
|p1= | |p1= unitName: [[Object]] |= Parameter 1 | ||
| [[String]] | | [[String]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>_playersFaction = [[faction]] [[player]];</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[side]], [[Side]] |= See also | ||
}} | }} | ||
Line 48: | Line 62: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate"> | <dd class="notedate"> | ||
<dt class="note"> | <dt class="note">[[User:Tankbuster|Tankbuster]] | ||
<dd class="note">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'. | <dd class="note">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'. | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 13:00, 26 March 2018
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:
1.00- West: "USMC", "CDF"
- East: "RU", "INS"
- Guer: "GUE"
- Civ: "CIV", "CIV_RU"
- 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"
- West: "BIS_BAF"
- Guer: "PMC_BAF"
- 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)
- West: "BLU_T_F" (Pacific NATO), "BLU_CTRG_F" (Pacific CTRG), "BLU_GEN_F" (Gendarmerie)
- East: "OPF_T_F"
- Guer: "IND_C_F" (Syndikat)
- "CIV_IDAP_F"
- Groups:
- Uncategorised
Syntax
Examples
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
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'.