FoxxyTheOut Posted February 29, 2016 Share Posted February 29, 2016 (edited) So upon creating and finishing my two characters, For the next update I wanted them to be able to consume and/or gain abilities from specific inorganic objects, Is there such code i can put into one of the lua files to do this? and which file? Also, How do i change his overall speed (not the one that you get when you spawn from a ghost??) Edited February 29, 2016 by FoxxyTheOut Link to comment https://forums.kleientertainment.com/forums/topic/64930-coding-for-special-abilities/ Share on other sites More sharing options...
KirbyJParasol Posted February 29, 2016 Share Posted February 29, 2016 Can't help you with the eating question, only thing I know is the strong stomach line that lets them eat monster meats. But here's the line for speed: inst.components.locomotor.walkspeed = 4 inst.components.locomotor.runspeed = 6 Just substitute "4" and "6" for whatever speed you want. These are the default speeds. The walk speed is what normally applies, while the runspeed is on roads. Link to comment https://forums.kleientertainment.com/forums/topic/64930-coding-for-special-abilities/#findComment-728324 Share on other sites More sharing options...
SenL Posted February 29, 2016 Share Posted February 29, 2016 I think it's better to use external speed multiplier. You could download some character mods that have such ability and learn from it. Shameless plug: Barbarian King has such code. Link to comment https://forums.kleientertainment.com/forums/topic/64930-coding-for-special-abilities/#findComment-728436 Share on other sites More sharing options...
Kzisor Posted February 29, 2016 Share Posted February 29, 2016 1 hour ago, SenL said: I think it's better to use external speed multiplier. You could download some character mods that have such ability and learn from it. Shameless plug: Barbarian King has such code. While it's understandable to tell someone they can simply download mods and look at code, if something has already been published on the forums it's better to post-back to the thread which has the code. @FoxxyTheOut take a look at this thread for the code @SenL mentioned. Link to comment https://forums.kleientertainment.com/forums/topic/64930-coding-for-special-abilities/#findComment-728486 Share on other sites More sharing options...
FoxxyTheOut Posted March 5, 2016 Author Share Posted March 5, 2016 On 2/29/2016 at 7:40 AM, KirbyJParasol said: Can't help you with the eating question, only thing I know is the strong stomach line that lets them eat monster meats. But here's the line for speed: inst.components.locomotor.walkspeed = 4 inst.components.locomotor.runspeed = 6 Just substitute "4" and "6" for whatever speed you want. These are the default speeds. The walk speed is what normally applies, while the runspeed is on roads. Well with that said, Whats the code for strong stomach line then? Link to comment https://forums.kleientertainment.com/forums/topic/64930-coding-for-special-abilities/#findComment-729936 Share on other sites More sharing options...
Neu7ral Posted March 5, 2016 Share Posted March 5, 2016 40 minutes ago, FoxxyTheOut said: Well with that said, Whats the code for strong stomach line then? inst.components.eater.strongstomach = true Link to comment https://forums.kleientertainment.com/forums/topic/64930-coding-for-special-abilities/#findComment-729943 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