Arma 3 Scripting

hasCustomFace

  • Global argument
  • Arma 3 v2.18

Command · Markdown · JSON · original wiki page

Description

Get whether or not a player has an available custom face file.

Note

To check if this custom face is currently being used, use face (returns "Custom" in that case).

Syntax

hasCustomFace person

Parameters:

Returns: 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];
};

See also

face · setFace · setIdentity · setSpeaker