Terry_Rosario Posted July 18, 2023 Share Posted July 18, 2023 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... Link to comment https://forums.kleientertainment.com/forums/topic/149538-add-speed-modifier-to-other-items/ Share on other sites More sharing options...
RedHairedHero Posted July 20, 2023 Share Posted July 20, 2023 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. 1 Link to comment https://forums.kleientertainment.com/forums/topic/149538-add-speed-modifier-to-other-items/#findComment-1651790 Share on other sites More sharing options...
Terry_Rosario Posted July 21, 2023 Author Share Posted July 21, 2023 (edited) 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 July 22, 2023 by Terry_Rosario edit the 1 by 1.25, maybe many people don't know that 1 is practically 0 Link to comment https://forums.kleientertainment.com/forums/topic/149538-add-speed-modifier-to-other-items/#findComment-1652767 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