1. Hi guys.
    Code:
    var Container = Entity as LootContainer;
    do that for lua?
     
  2. It should be something like this:
    Code:
    function PLUGIN:OnEntitySpawn(entity)
        local container = entity:GetComponent("LootContainer")
        if not container then return end
        print(container)
    end
    I haven't been able to test it though
     
  3. Thank you very much.