okay thats not what I wanted, but it almost comes up to my expectations.
I use your script now, but edited it a bit. I don't use an extra panel. To get the position I use the interface panel which is at 0,0 and add the numbers I need to get the right position. But I have another problem now. The interface is at layer 1 and hides the cup. How can I influence the layer of the entity? I think "layer=2;" doesn't work here because it's not a panel or text.
thank you so far for your help!
