I wrote a client command too output something like the following to a .loc file:
{
"classname" "target_location"
"origin" "4678 -2564 4"
"message" "^1Red ^7Flag"
}
The client command is \dumploc <message> where message is what is put in that field of the file and the origin is you current location.
Can someone help me with parsing this like during init or server ?
I know hex did it a different way but i wrote my dump command like this :)
Check out one of the many parsing functions used by the game to load in data. I typically use the siege parsing code for my stuff.