This has been partially solved, please scroll down to my next reply for the solution
So for my script I need to find out which way my NPC is walking. I've checked the API and did some googling to find that: npcs.closest(id).getRotation would work, however it looks like it has been depricated in the API.
I can't see anything in the NPCS that would help me find the solution to this.
I know I could grab 2 positions of the NPC and work out the direction myself, but my script is heavily reliant on timing and leaves me with not much room to do this calculation. I could make it work for my script so it's not the end of the world, it's just that I'd like to aviod rewriting functions.
So, any clean way to get the rotation of an NPC without having to take 2 positions? Thanks.