Jump to content

Recommended Posts

Is this possible to do?
I have been trying but all my attempts end in crashes is "locomotor" the component to be used or am I doing it wrong from there, I have been trying with some weapons to test.

It had never occurred to me to try this  and I didn't think it would be difficult but dam...

On 7/19/2023 at 7:16 PM, RedHairedHero said:

I would suggest taking a look at the walking cane’s prefab for a way to do this. That’s how I teach myself is just by opening a prefab of an item and read through the code.

I  took another look at this one again and  managed to realize the problem in the end it stays like this and it is fully functional.

inst:AddComponent("locomotor")inst.components.equippable.walkspeedmult = 1.25

 

Edited by Terry_Rosario
edit the 1 by 1.25, maybe many people don't know that 1 is practically 0

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