Glitchiest Posted August 18, 2017 Share Posted August 18, 2017 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 More sharing options...
Lumina Posted August 18, 2017 Share Posted August 18, 2017 I'm not sure, editing the different prefab of heavy things to modify the mult used depending of the character, maybe ? But if new heavy things are added you'll have to add it so it's not the cleanest way... Link to comment Share on other sites More sharing options...
ptr Posted August 18, 2017 Share Posted August 18, 2017 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 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