Added couple of more functions:
Code: ags
These return the copies of the current path. If moving order changes, the previously returned array becomes obsolete (not automatically updated, of course).
I have a thought about adding something that returns a more sophisticated object, which describes not only the current path, but also speeds and current position on this path, but perhaps I should do this as a separate task.
Updated download for a test (based on AGS 4):
https://cirrus-ci.com/task/5429664145997824
/// Returns the moving path of this character, or null if it's not moving
Point*[] Character.GetPath();
/// Returns the moving path of this object, or null if it's not moving
Point*[] Object.GetPath();
These return the copies of the current path. If moving order changes, the previously returned array becomes obsolete (not automatically updated, of course).
I have a thought about adding something that returns a more sophisticated object, which describes not only the current path, but also speeds and current position on this path, but perhaps I should do this as a separate task.
Updated download for a test (based on AGS 4):
https://cirrus-ci.com/task/5429664145997824