faction: Difference between revisions
Jump to navigation
Jump to search
SilentSpike (talk | contribs) (Added missing faction) |
SilentSpike (talk | contribs) m (Added missing line break and faction) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Gets unit faction. Factions are defined under ''CfgFactionClasses''. If the given faction is not defined, the command returns empty string. Standard Factions include: | | Gets unit faction. Factions are defined under ''CfgFactionClasses''. If the given faction is not defined, the command returns empty string. Standard Factions include:<br> | ||
'''Arma 2''': | '''Arma 2''': | ||
* West: "USMC", "CDF" | * West: "USMC", "CDF" | ||
Line 26: | Line 25: | ||
'''Arma 3''': | '''Arma 3''': | ||
* West: "BLU_F" (NATO), "BLU_G_F" (FIA) | * West: "BLU_F" (NATO), "BLU_G_F" (FIA) | ||
* East: "OPF_F" (CSAT) | * 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) |= Description |
Revision as of 16:29, 26 May 2014
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:
Arma 2:- 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"
Arma 2: British Armed Forces:- 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)
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_faction = faction _object;
Additional Information
- See also:
- See also needed
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'.