nanos world API Reference Unofficial documentation
Event Server

Pickable.Interact

Triggered when a Character interacts with this Pickable (i.e. tries to pick it up)

Syntax

Lua
Pickable.Subscribe("Interact", function(self, character)
    -- il tuo codice
end)

Arguments

Name Type Default Description
self Pickable The Pickable that just got interacted with
character Character The Character that interacted with it

Returns

  • boolean Return <code>false</code> to prevent the interaction