Jump to content

What if two mods are going to tweak charater speed?


Recommended Posts

What is the best way for those mods to be compatible with each other? Is there any addendum function which can be hooked? I found only components.locomotor.bonusspeed variable, but it's just variable, and each mod will overwrite it.

Edited by Maris
Link to comment
Share on other sites

local key = "My unique key"local function AddMyMultiplier(inst)   inst.components.locomotor:SetExternalSpeedMultiplier(inst, key, 1.5)endlocal function RemoveMyMultiplier(inst)   inst.components.locomotor:RemoveExternalSpeedMultiplier(inst, key)end

That way you don't need to touch what others change, or other multipliers.

And you can add many multipliers too!

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
 Share

×
  • Create New...