search
search: (Equipment) -> ContainerQueryA query over what is worn.
player:equipment()| Method | Returns | Description |
|---|---|---|
search() | ContainerQuery | A query over what is worn. |
itemIn(WornSlot) | ItemHandle? | What is worn in one slot. |
isTwoHandedWeapon(number) | boolean | Whether an item occupies both hands, from its equipment stats, so equipping it would unequip the shield. |
interact(number, string | { string }) | boolean | Interact with a worn item by id. |
interactName(string, string | { string }) | boolean | Interact with a worn item by name. |
| Method | Returns | Description |
|---|---|---|
PlayerDomain.equipment | Equipment | Worn gear. |
searchsearch: (Equipment) -> ContainerQueryA query over what is worn.
itemInitemIn: (Equipment, WornSlot) -> ItemHandle?What is worn in one slot.
slot"weapon"; another name raises.nil when the slot is empty.isTwoHandedWeaponisTwoHandedWeapon: (Equipment, number) -> booleanWhether an item occupies both hands, from its equipment stats, so equipping it would unequip the shield.
itemIdinteractinteract: (Equipment, number, string | { string }) -> booleanInteract with a worn item by id.
itemIdoptions"Remove"), or options to try in order.interactNameinteractName: (Equipment, string, string | { string }) -> booleanInteract with a worn item by name.
nameContainerQuery.named.options"Remove"), or options to try in order.