faction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dt class="note">([^<>]+) " to "<dt class="note">$1</dt> ")
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
Line 91: Line 91:
{{!}}}
{{!}}}


{{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
| [[faction]] unitName

Revision as of 01:11, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationSides

Syntax

Syntax:
Syntax needed
Parameters:
unitName: Object
Return Value:
Return value needed

Examples

Example 1:
private _playerFaction = faction player;

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