skeleton:findSlot()

Type: function
See also: skeleton

Overview:


Returns a boolean indicating whether a slot with slotName exists in the skeleton.

Syntax:


local exists = skeleton:findSlot(slotName)
  • slotName (required):

    string – The name of the slot to search for.

Return value:


booleantrue if the slot exists, false otherwise.

Example:


if hero:findSlot("backpack") then
    print("Slot 'backpack' exists!")
else
    print("Slot 'backpack' not found.")
end