faction

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in ARMA 2  version 1.00

Click on the images for descriptions

Introduced in

Game:
ARMA 2
Version:
1.00

Description

Description:
Gets unit faction. 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"

Factions are defined under cfgFactionClasses. If the given faction is not defined, the command returns empty string.

Syntax

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

Examples

Example 1:
_faction = faction _object;

Additional Information

Multiplayer:
-

Notes

Notes


Only post proven facts here. Use the talk page or the forums for discussions.

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

Personal tools
Google Ads