list.remove
Removes a picked entry from a list.
Signature
list.remove(ref: ElementRef, key: string, item: ContentRef): void
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ref | ElementRef | Required | The element it works on, usually self. |
key | string | Required | The name of the list. |
item | ContentRef | Required | The entry the player picked. |
Returns
void Nothing.
Example
list.remove(self, "pack", trinket);
