Jump to content

Suspicious marble carry speed tweak

Recommended Posts

I'm trying to make a character who's rather quick and physically strong, but it's pretty jarring to see them slow aaall the way down when carrying a chunk of marble statue. He'd normally be able to carry them somewhat faster than the average person, but I have no idea how to do this. Well, except that it probably has to do with stuff in tuning, and this line of code in the suspicious marble prefab.

inst.components.equippable.walkspeedmult = TUNING.HEAVY_SPEED_MULT


Where would I start?

Link to comment
Share on other sites

you can override this function for equippable

function Equippable:Equip(owner)

just check the owner.prefab to see if it is your charactor, and then verify the walkspeedmult if so.

and then change it back in 

function Equippable:Unequip(owner)

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