Ratituee Posted October 8 Share Posted October 8 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. Link to comment Share on other sites More sharing options...
Haruhi Kawaii Posted October 11 Share Posted October 11 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) else inst.components.locomotor:RemoveExternalSpeedMultiplier(inst, "wolfgang_normal_speed_mod") end end AddPrefabPostInit("wolfgang", function(inst) if not GLOBAL.TheWorld.ismastersim then return inst end inst:ListenForEvent("mightiness_statechange", addseed) end) Link to comment Share on other sites More sharing options...
Recommended Posts
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