Is there a clever way to quickly translate the world coordinates to client.screen format? I would love to do this without assuming that the mob is in the middle of the viewport, but I have a feeling it's not doable since there is no way to figure out how far away from the screen edges the mob are.
An example how I would like the function to work: the mob is at (5,4). An object is making a noise at (8,8). I would like a noise image to appear in client.screen at the correct coordinates. Any ideas?