faction: Difference between revisions

From Bohemia Interactive Community
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Gets unit faction. 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:
 
'''Arma 2''':
'''Arma 2''':
* West: "USMC", "CDF"
* West: "USMC", "CDF"
Line 23: Line 24:
'''Arma 2: Private Military Company''':
'''Arma 2: Private Military Company''':
* Guer: "PMC_BAF"
* Guer: "PMC_BAF"
 
'''Arma 3''':
Factions are defined under cfgFactionClasses. If the given faction is not defined, the command returns empty string. |= Description
* West: "BLU_F" (NATO)
* East: "OPF_F" (CSAT)
* Guer: "IND_F" (AAF), "IND_G_F" (FIA)
* Civ: "CIV_F" (Civilians) |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 34: Line 38:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_faction = faction _object;</pre> |= Example 1
|x1= <code>_faction = [[faction]] _object;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 09:16, 15 August 2013

Hover & click on the images for description

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"
Arma 2: Operation Arrowhead:
  • 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"
DLC Factions
Arma 2: British Armed Forces:
  • West: "BIS_BAF"
Arma 2: Private Military Company:
  • Guer: "PMC_BAF"
Arma 3:
  • West: "BLU_F" (NATO)
  • East: "OPF_F" (CSAT)
  • Guer: "IND_F" (AAF), "IND_G_F" (FIA)
  • Civ: "CIV_F" (Civilians)
Groups:
Uncategorised

Syntax

Syntax:
String = faction unitName
Parameters:
unitName: Object
Return Value:
String. See above.

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.
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'.

Bottom Section