faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (ArmA2..)
(list factions)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Gets unit faction. If faction is not defined, returns empty string |= 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. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| |= Return value
| [[String]]. See above. |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>faction</pre> |= Example 1
|x1= <pre>_faction = faction _object;</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 05:27, 14 June 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 or Group
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