I am writing a hearing script for a game ... How can I tell if a entity is on screen or not on screen? I only want to run event if the player hears the foot steps of a entity off screen? I'm sure there is something for this.
rel_to_screen doesn't work at all unless I'm doing something wrong. IS there a way to run a function only if the entity is in the view. I've tried, rel_to_screen,rel_for_screen, and if (!(my.eflags&CLIPPED)){dosomething }//lite-C none of these work... Is there a command or should I ask for one in the Future thhread???
It's not rel_to_screen, you should use vec_to_screen. The ClIPPED flag should work as well. However, if an entities CLIPPED flag is set that does not mean the entity is behind or besides the camera. It can also have its INVISIBLE flag set or be to close to or to far away from the camera.
Always learn from history, to be sure you make the same mistakes again...