faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replace - "</dt>" to "")
m (Text replace - "</dd>" to "")
Line 44: Line 44:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate"></dd>
<dd class="notedate">
<dt class="note">'''[[User:Tankbuster|Tankbuster]]'''
<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>
<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:33, 21 October 2011

Hover & click on the images for description

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