Zum Hauptinhalt springen

Has Cosmetic Fact

Checks if a player has a specific cosmetic unlocked.

Felder

FeldTypStandardBeschreibung
groupRef<GroupEntry>——
cosmeticIdString—ID of the cosmetic to check.
artifactRef<PlayerCosmeticsArtifactEntry>—Reference to the player data artifact. If empty, tries to find the default one.
Gemeinsame TypeWriter-Felder (comment)
FeldTypStandardBeschreibung
commentString——

How to use it​

Returns 1 when the cosmetic was unlocked for the player and 0 otherwise. Set cosmeticId to the entry ID of the cosmetic definition. A cosmetic that is only available through its permission is not counted, and the artifact field is not read.