IsWorldItemInteractable
Whether a loose item of the level is switched on.
false while SetWorldItemInteractable has the slot switched off, true for every other key.
Syntax
Section titled “Syntax”IsWorldItemInteractable(key)| Parameter | Type | |
|---|---|---|
key |
string | the item slot’s key |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if not IsWorldItemInteractable(key) then SendClientMessage(pid, COLOR_SERVER, "That is only on show.") endSee also
Section titled “See also”SetWorldItemInteractable · GetWorldItemsNear · the Doors and containers group of the index
