Jump to content

Crab King plays boss music at all times for clients


Hornete
  • Pending
local function PushMusic(inst)
    if ThePlayer == nil or (inst.sg and inst.sg:HasStateTag("inert")) then
        inst._playingmusic = false
    elseif ThePlayer:IsNear(inst, inst._playingmusic and 40 or 20) then
        inst._playingmusic = true
        ThePlayer:PushEvent("triggeredevent", { name = "crabking" })
    elseif inst._playingmusic and not ThePlayer:IsNear(inst, 50) then
        inst._playingmusic = false
    end
end

I believe Crab King should only be playing music when he is "activated", however the sg checks here fail as the stategraph is not on the client side.

Perhaps a solution could be checking for the "hostile" tag instead as that tag is added and removed when the Crab King fight is activated and disabled.


Steps to Reproduce

1. Go into a world as a client
2. Go to Crab King
3. Notice music plays even though it should only play when the fight is activated.

  • Big Ups 2



User Feedback




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...