faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Added OA/BAF factions and placeholder for PMC)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Gets unit faction. Standard factions in Arma 2 are: "USMC", "INS", "CDF", "RU", "CIV", "GUE", "CIV_RU". Factions are defined under cfgFactionClasses. If faction is not defined, returns empty string. |= Description
| Gets unit faction. Standard Factions include: <br/>
'''Arma 2''':
"USMC", "INS", "CDF", "RU", "CIV", "GUE", "CIV_RU"
'''Arma 2: Operation Arrowhead''':
"BIS_US", "BIS_CZ", "BIS_GER", "BIS_TK", "BIS_TK_INS", "BIS_TK_GUE", "BIS_UN", "BIS_TK_CIV", "BIS_CIV_special"
''DLC Factions''<br/>
'''Arma 2: British Armed Forces''':
"BIS_BAF", "PMC_BAF"
'''Arma 2: Private Military Company''':
""
 
Factions are defined under cfgFactionClasses. If faction is not defined, returns empty string. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 01:24, 23 October 2010

Hover & click on the images for description

Description

Description:
Gets unit faction. Standard Factions include:
Arma 2: "USMC", "INS", "CDF", "RU", "CIV", "GUE", "CIV_RU" Arma 2: Operation Arrowhead: "BIS_US", "BIS_CZ", "BIS_GER", "BIS_TK", "BIS_TK_INS", "BIS_TK_GUE", "BIS_UN", "BIS_TK_CIV", "BIS_CIV_special" DLC Factions
Arma 2: British Armed Forces: "BIS_BAF", "PMC_BAF" Arma 2: Private Military Company: "" Factions are defined under cfgFactionClasses. If faction is not defined, returns empty string.
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 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'.

Bottom Section