hasCustomFace: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Fix) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
| | |||
|arg= global | |||
|gr1= Unit Identity | |gr1= Unit Identity | ||
|descr= | |descr= Get whether or not a player has an available custom face file. | ||
{{Feature|informative|To check if this custom face is currently being used, use [[face]] (returns "Custom" in that case).}} | |||
|s1= [[hasCustomFace]] person | |s1= [[hasCustomFace]] person | ||
|p1= person: [[Object]] | |p1= person: [[Object]] | ||
|x1= <sqf>hasCustomFace | |r1= [[Boolean]] - [[true]] if player has a {{hl|face.paa/jpg}} file in their current profile and it is usable | ||
|x1= <sqf> | |||
if (isPlayer _thisUnit && hasCustomFace _thisUnit && face _thisUnit != "Custom") then | |||
{ | |||
[_thisUnit, "Custom"] remoteExec ["setFace", 0, true]; | |||
}; | |||
</sqf> | |||
|seealso= [[face]] [[setFace]] [[setIdentity]] [[setSpeaker]] | |seealso= [[face]] [[setFace]] [[setIdentity]] [[setSpeaker]] | ||
}} | }} |
Latest revision as of 16:07, 8 October 2024
Description
- Description:
- Get whether or not a player has an available custom face file.
- 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:
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