local function onhammered(inst, worker) if inst.components.burnable ~= nil and inst.components.burnable:IsBurning() then inst.components.burnable:Extinguish() end inst.components.lootdropper:DropLoot() local fx = SpawnPrefab("collapse_small") fx.Transform:SetPosition(inst.Transform:GetWorldPosition()) fx:SetMaterial("wood") inst:Remove()endlocal function onhit(inst, worker) if not inst:HasTag("burnt") then inst.AnimState:PlayAnimation("hit") inst.AnimState:PushAnimation("idle", false) endend