Ideas for moviment

Discuss the development of Lua addons for Ashita v3 here.
Post Reply
pantafernando
Posts: 23
Joined: Mon Nov 06, 2017 6:12 am

Ideas for moviment

Post by pantafernando » Sun Nov 24, 2019 11:14 am

Hi.

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
User avatar
atom0s
Site Admin
Posts: 456
Joined: Sat May 14, 2016 5:13 pm

Re: Ideas for moviment

Post by atom0s » Sun Nov 24, 2019 6:56 pm

You can use the auto-follow struct for running around. The info I posted here is up to date:
viewtopic.php?p=1984#p1984

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.
Lead Ashita Developer

Want to donate to say thanks?
https://www.paypal.me/atom0s
pantafernando
Posts: 23
Joined: Mon Nov 06, 2017 6:12 am

Re: Ideas for moviment

Post by pantafernando » Mon Nov 25, 2019 8:47 am

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
Post Reply