Jump to content

Bats try to attack nearby walls but fail


loganpea
  • Pending
    attacktimeline =
    {

        TimeEvent(8* FRAMES, function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/bat/bite") end),
        TimeEvent(11*FRAMES, function(inst)
            inst.components.combat:DoAttack() --should be inst.components.combat:DoAttack(inst.sg.statemem.target)
            inst.SoundEmitter:PlaySound("dontstarve/creatures/bat/flap")
        end),
    },

They fail to hit walls because their target is only set when aggroed to something


Steps to Reproduce

Line 361 in SGbat.lua

  • Like 1



User Feedback


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...