hasCustomFace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "|branch1= dev" to "|branch= dev")
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.18
|version1= 2.18
|branch1= dev
|branch= dev


|arg= global
|arg= global

Revision as of 19:08, 6 August 2024

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.18.

Description

Description:
Get whether or not a player has an available custom face file.
To check if this custom face is currently being used, use face (returns "Custom" in that case).
Groups:
Unit Identity

Syntax

Syntax:
hasCustomFace person
Parameters:
person: Object
Return Value:
Boolean - true if player has a face.paa/jpg file in their current profile and it is usable

Examples

Example 1:
if (isPlayer _thisUnit && hasCustomFace _thisUnit && face _thisUnit != "Custom") then { [_thisUnit, "Custom"] remoteExec ["setFace", 0, true]; };

Additional Information

See also:
face setFace setIdentity setSpeaker

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