Przejdź do głównej treści
Docs
›
list.remove

list.remove

List

Usuwa wybraną pozycję z listy.

Sygnatura

list.remove(ref: ElementRef, key: string, item: ContentRef): void

Parametry

NazwaTypWymaganeOpis
refElementRefWymaganeElement, na którym działa funkcja, zwykle self.
keystringWymaganeNazwa listy.
itemContentRefWymaganePozycja wybrana przez gracza.

Zwraca

void Nic.

Przykład

list.remove(self, "pack", trinket);