faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
(Does not work for groups http://dev-heaven.net/issues/show/5414)
Line 12: Line 12:
| String <nowiki>=</nowiki> '''faction''' unitName |= Syntax
| String <nowiki>=</nowiki> '''faction''' unitName |= Syntax


|p1=  unitName: [[Object]] or [[Group]] |= Parameter 1
|p1=  unitName: [[Object]] |= Parameter 1


| [[String]]. See above. |= Return value
| [[String]]. See above. |= Return value

Revision as of 00:37, 4 November 2009

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

Bottom Section