I assume someone forgot to put these into that stategraph state?
inst.SoundEmitter:PlaySound("webber1/creatures/spider_cannonfodder/heal") inst.SoundEmitter:PlaySound("webber1/creatures/spider_cannonfodder/heal_fartcloud")
State{ name = "heal", tags = {"attack", "busy"}, onenter = function(inst, target) inst.Physics:Stop() inst.AnimState:PlayAnimation("heal") end, timeline= { TimeEvent(30*FRAMES, function(inst) -- DANY --inst.SoundEmitter:PlaySound("SPIDER SMOKE SOUND") inst:DoHeal() end ), }, events= { EventHandler("animover", function(inst) inst.sg:GoToState("idle") end), }, },
Steps to Reproduce
c_spawn "spider_healer".sg:GoToState("heal")
- 1
There are no comments to display.
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 accountSign in
Already have an account? Sign in here.
Sign In Now