Jump to content

How to give mighty Wolfgang his old speed buff?

Recommended Posts

On 10/9/2023 at 3:57 AM, Ratituee said:

I would like a way to do this in modmain.lua rather than a script folder, I believe he used to get a 1.15 speed multiplier when mighty.

local function addseed(inst, data)
	if inst.components.mightiness:IsMighty() then
		inst.components.locomotor:SetExternalSpeedMultiplier(inst, "wolfgang_normal_speed_mod", 1.15)
		inst.components.locomotor:RemoveExternalSpeedMultiplier(inst, "wolfgang_normal_speed_mod")

AddPrefabPostInit("wolfgang", function(inst)
	if not GLOBAL.TheWorld.ismastersim then
		return inst
	inst:ListenForEvent("mightiness_statechange", addseed)


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