I have a C++ example that I got somewhere else if you want to have a look at it. It has an exe to test the thing, but you'll have to either get ideas from it or convert it to C-script, or make a dll. It has the ability to change the size of the array or should have.
http://quasar.ifastnet.com/files/C++Path.rar

I also have an old PDF Astar tutorial for A5.2 by Philipp Walser, you could maybe make out something from it.
http://quasar.ifastnet.com/files/Path.pdf

I hope it helps.


God DID give us a manual on how to change this world...