Tray Type||doc135678

September 20, 2022


  • The class to which the function belongs:tray


Get the tray container type.

Value Returned

type Description
Define.TRAY_TYPE container type

Code Samples

On the server side of the entity templatemount script, add the registration of this type of entity object tray when adding itemCallback, which outputs the tray container type of the tray

Trigger.addHandler(this:cfg(), "SETTLE_ITEM", function(context)
    local entity = context.obj1
    local tray = context.tray
    local bagType = tray:type()