if (world:Pick(posMob, posPlayer,pi, 0, true)) == false then --pick the correct way.
return 0
else
self.debugSphere3:SetPosition(pi.position) -- set debg sphere where pick was sucessfully hit.
local n = pi.entity:GetKeyValue("name","no name?")
System:Print(n) --print name of picked item
end
Also if you print out the pick name you can see Bip HEAD alot that means the mob is picking itself in the head.
So maybe pick from infront of the mob or above. or use setpickmode(0) recursive.
EDIT: added my small trial.
DogAI.zip