Jump to content

Pog is unable to open and steal items from the container that has Physics


KXWl1
  • DLC VERSION - IMPORTANT!: Hamlet Fixed

Pog is unable to open and steal items from the container that has Physics, such as the Cook Pot and Smelter

local function ransack(inst)
    local pt = Vector3(inst.Transform:GetWorldPosition())
    local ents = TheSim:FindEntities(pt.x,pt.y,pt.z, TUNING.POG_SEE_FOOD, {"structure"},{"pogproof"})
    local containers = {}
    for i, ent in ipairs(ents) do
        if ent.components.container then
            table.insert(containers,ent)
        end
    end

    if #containers > 0 then
        local container = containers[math.random(1,#containers)]

        local items = container.components.container:FindItems(function() return true end)
        if #items > 0 then
            return BufferedAction(inst, container, ACTIONS.RANSACK)
        end
    end
end

 


Steps to Reproduce

1. Spawn a Cook Pot, Smelter, Pog.

2. Put something into cook pot and smelter.

3. Notice that Pog try to walk into cookpot or smelter. 

4. But it can never do the action "RANSACK"  due to having a physics collide with them

Please DO NOT disable the pog's abiltity to ransack Cook Pot and Smelter, just keep it more harmful to players. Maybe add some distance to the action can this problem be solved




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...