Try the following:
int dbObjectScreenX ( int iObject )
This command will return the current X screen coordinate of the specified 3D object, even if the object is not actually within the borders of the screen. You can use this for providing such things as text labels for your 3D objects or adding lens flare to a nearby street lamp.
int dbObjectScreenY ( int iObject )
This command will return the current Y screen coordinate of the specified 3D object, even if the object is not actually within the borders of the screen. You can use this for providing such things as text labels for your 3D objects or adding lens flare to a nearby street lamp.
------------------------------------
Currently 1500+ lines of code into an "over-the-shoulder" action RPG with combat based on rag-doll physics.