faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> <dt><dt>" to " <dl class="command_description"> <dt><dt>")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
Line 93: Line 93:
{{Feature | Informative | If a unit's faction is not defined in its config, an empty string is returned.}}
{{Feature | Informative | If a unit's faction is not defined in its config, an empty string is returned.}}


| [[faction]] unitName
|s1=  [[faction]] unitName


|p1= unitName: [[Object]]
|p1= unitName: [[Object]]

Revision as of 23:06, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationSides

Syntax

Syntax:
faction unitName
Parameters:
unitName: Object
Return Value:
String

Examples

Example 1:
private _playerFaction = faction player;

Additional Information

See also:
sideSide

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