faction: Difference between revisions

From Bohemia Interactive Community
(Does not work for groups http://dev-heaven.net/issues/show/5414)
No edit summary
Line 27: Line 27:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dd class="notedate"></dd>
<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>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 16:56, 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.
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.

Bottom Section