OBJECT SCREEN Y 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.
Syntax
    Return Integer=OBJECT SCREEN Y(Object Number)
Parameters
    Object Number
Integer The object number
Returns
This command will return the current y screen coordinate of the specified 3D object
Description
You can use this for providing such things as text labels for your 3D objects or adding lens flare to a nearby street lamp. The parameter should be specified using an integer value.
Example Code
    backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    load object "models\model.x",ObjectNumber

    print "BASIC3D EXPRESSION DATA"

    if object exist(ObjectNumber)=1

    print "object in screen:";object in screen(ObjectNumber)

    print "object screen x:";object screen x(ObjectNumber)

    print "object screen y:";object screen y(ObjectNumber)

    endif

    while mouseclick()=0

    sync

    endwhile

    while mouseclick()=1:endwhile

    if object exist(ObjectNumber)=1 then delete object ObjectNumber

    end
See also
BASIC3D Commands Menu Index