{"name":"hasCustomFace","operator":null,"title":"hasCustomFace","type":"command","url":"https://community.bistudio.com/wiki/hasCustomFace","revid":369746,"updated":"2024-10-08T15:07:09Z","groups":["Unit Identity"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Get whether or not a player has an available custom face file.\n\n> [!NOTE]\n> To check if this custom face is currently being used, use face (returns \"Custom\" in that case).","syntaxes":[{"syntax":"hasCustomFace person","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"person: Object"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if player has a `face.paa/jpg` file in their current profile and it is usable","text":"Boolean - true if player has a `face.paa/jpg` file in their current profile and it is usable"},"form":"unary","operator":null,"left":null,"right":{"text":"person","types":["Object"]}}],"examples":[{"text":"```sqf\nif (isPlayer _thisUnit && hasCustomFace _thisUnit && face _thisUnit != \"Custom\") then\n{\n    [_thisUnit, \"Custom\"] remoteExec [\"setFace\", 0, true];\n};\n```","code":["if (isPlayer _thisUnit && hasCustomFace _thisUnit && face _thisUnit != \"Custom\") then\n{\n\t[_thisUnit, \"Custom\"] remoteExec [\"setFace\", 0, true];\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["face","setFace","setIdentity","setSpeaker"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Identity","Introduced with Arma 3 version 2.18","Scripting Commands"]}