PDA

View Full Version : Location recording


pxleyes
17-10-2006, 04:26 AM
I am in the process of developing a new utility mod. The purpose of the mod is to record the coordinate location (xx,yy) of a player within IF every 2 seconds (or a set interval). I want the coordinates of the player to be written to an XML file, so when I try and parse it, I have a series of coordinates to map out.

Now in essence it seems simple enough, but I am still learning and need some help. I was able to figure out from looking at the code of a number of mods on how to grab the coordinates and make them into the (xx,yy) formatting. However, at that point, I'm stuck.

I was hoping you all could help me better understand my problem. I want to basically know the best way to save the coordinates (maybe a multi-dimensional array), and how do I go about saving the coordinates to the XML in sequence at a set interval.

Thank you in advance for any help on this.