Hi,
I'm currently trying to log the player position in the client_PostThink code. However, get_user_origin keeps returning 0,0,0 as the position, even as I move around. Can anyone spot an error?
Code:
new angle[3];
new text[30];
public client_PostThink(id)
{
get_user_origin(id, angle, 0);
format(text, 30, " %f, %f, %f", angle[0], angle[1], angle[2]);
write_file("viewvec.txt", text);
client_print(id, print_chat, text);
}
Thanks,
James