Jump to content

Need help with removing/stopping a PushEvent.

Recommended Posts

So, I'm trying to make a Crab King Rework mod, one of the things I wanted to do is remove it's ability to cause leaks.
I think I found what I need to remove to make that work but I don't know how.

                    boat:PushEvent("spawnnewboatleak", {pt = pt, leak_size = "small_leak", playsoundfx = true})        
--this was found on crabking.lua, I think it's the correct thing.


Link to comment
Share on other sites

Unfortunately, since this is part of a local function within the crabking's prefab file, it looks like you might need to edit it's code directly in order to disable it.

That would mean just copying crabking.lua into your mod's prefab folder and simply removing that line of code.

This is generally considered bad modding practice because it will prevent other mods from changing the crabking's code, and it also won't get updated if Klei changes the crabking's code in the future. But hey ¯\_(ツ)_/¯ sometimes sacrifices must be made in the name of science

Link to comment
Share on other sites

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