Jump to content

how to build a Path class instance


nolanri

Recommended Posts

There must be some global function to build a path instance from starting points and ending points.


http://projectzomboid.com/modding/zombie/ai/astar/Path.html

 

How can I do this?

I tried using: http://projectzomboid.com/modding/zombie/ai/astar/IPathfinder.html

 

Example:

local myPath = PathFinder.findPath(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)

local myPath = PathFinder:findPath(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)

local myPath = getPathFinder():findPath(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)

local myPath = findPath(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)

 

 

But none of which the LUA can recognize.

 

is this a java only function or something? how do you use it?

Edited by nolanri
Link to comment
Share on other sites

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