faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 29: Line 29:
<dd class="notedate"></dd>
<dd class="notedate"></dd>
<dt class="note">'''[[User:Tankbuster|Tankbuster]]'''</dt>
<dt class="note">'''[[User:Tankbuster|Tankbuster]]'''</dt>
<dd class="note">Faction behaves slightly differently to [[side]]. Side can refer to the pilot or commander of a vehicle, but faction never changes. </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'. </dd>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 17:57, 19 March 2010

Hover & click on the images for description

Description

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