Jump to content

Simple question about code


Vizaru

Recommended Posts

Hi, I am a beginner, so this question is very noobish.

what is the difference between run speed and walk speed?

The code i usually see in script files looks like:

inst.components.locomotor.walkspeed

inst.components.locomotor.runspeed

I understand they affect character movement speed, but I always see them set to the same value for a given character. Thus, I was just wondering what would happen if they were different values. Thanks.

Link to comment
Share on other sites

Depending on their current behaviour, creatures prefer to walk or run (e.g. pigmen walk when wandering idle but run when fighting). You don't have to give a creature the abilities to do both, I think. (tallbirds only have one speed)

You can set the walk/run abilities in the StateGraph.

 

I can't get my custom creatures to move... so yeah, don't listen to me.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...