Jump to content

Recommended Posts

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 by FoxxyTheOut

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.

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.

 

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?

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