[Condition] clothesContain

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

Actor.clothesContain(what)

USE:
Returns true if any of the clothing files that an actor is wearing contains 'what'.
Can be used to check if an actor is wearing a specific cloth / type of cloth.
The original names for the clothes are shown when you hover over them in the inventory menu.

The parameter isn't case sensitive and it's a string contains function so you can just use keywords
like dress or bra, doesn't have to be a full name.


TYPE: Command, Reference
RETURNS: /
THEME: Clothes
COMPARE: dress(), stripOne(), clothesContain()


EXAMPLE:

Code: Select all

If Actor.clothesContain(skirt)
    // wearing a skirt
Else
    // No skirt
EndIf
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply