OK... Slight problem I don't know how to fix.
All works well using when the camera is facing the player 3d object.
Using:
cX = GetScreenXFrom3D(GetObjectX(Player), GetObjectY(Player), GetObjectZ(Player))
cY = GetScreenYFrom3D(GetObjectX(Player), GetObjectY(Player), GetObjectZ(Player))
SetTextAlignment(TagnameLbl, 1) //centered on Player
SetTextPosition(TagnameLbl, cX, cY)
However when the camera is turned completely away from the Player object the text is still displaying on screen as its behind the camera.
Unfortunately, GetObjectInScreen doesn't work as it should. When the player is off screen, GetObjectInScreen(Player) always returns 1 as I'm guessing its not working properly because it should return 0.
Any other way to set the text visible property to 0 when the player is not in view of the camera?