faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - " \| (\[\[[a-zA-Z ]+\]\]) \|x1=" to " |r1=$1 |x1=")
Line 97: Line 97:
|p1= unitName: [[Object]]
|p1= unitName: [[Object]]


| [[String]]
|r1=[[String]]


|x1= <code>[[private]] _playerFaction = [[faction]] [[player]];</code>
|x1= <code>[[private]] _playerFaction = [[faction]] [[player]];</code>

Revision as of 22:13, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationSides

Syntax

Syntax:
Syntax needed
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'.