Page 1 of 1

Ideas for moviment

Posted: Sun Nov 24, 2019 11:14 am
by pantafernando

Im trying to set up my program for sphere hunting. One feature i would like to add to it is having my char wandering to some specified coordinate in zone.

So i would like some sugestions how to do that. Like how to make a char move to a set coordinate (for example im at x=1 z=1, how to make it walk/run toward x=2 z=2 then stop there?).

Thanks in advance

Re: Ideas for moviment

Posted: Sun Nov 24, 2019 6:56 pm
by atom0s
You can use the auto-follow struct for running around. The info I posted here is up to date:

You do not have to give the auto-follow system any target or data like that, instead you can force it to auto-follow a position delta from you. Keep in mind it won't automatically handle the terrain and avoid obstacles though. So you would need to make your own pathing setup to know where to run from its current position using it.

Re: Ideas for moviment

Posted: Mon Nov 25, 2019 8:47 am
by pantafernando
Thanks atom0s.

That struct is like a namespace?

Sorry to sound too newb but can you give some hints how to put that struct to work? Or a reference where can i learn to implement namespaces.

Thanks in advance