stategraphs/SGminotaur.lua
252253254255256257
onenter = function(inst)
inst.components.locomotor:StopMoving()
inst.AnimState:PlayAnimation("death")
end,
TimeEvent(0*FRAMES, function(inst)
252253254255256257258
onenter = function(inst)
inst.components.locomotor:StopMoving()
inst.AnimState:PlayAnimation("death")
inst.components.lootdropper:DropLoot()
end,
TimeEvent(0*FRAMES, function(inst)
259260261262263264265266267268
inst.SoundEmitter:PlaySound("dontstarve/creatures/rook_minotaur/death_voice")
end),
events =
{
EventHandler("animqueueover", function(inst) inst.sg:GoToState("idle") end),
},
},
}
260261262263264265
inst.SoundEmitter:PlaySound("dontstarve/creatures/rook_minotaur/death_voice")
end),
},
}