dim3 Forum

Full Version: Request- Screen location
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This idea came out of the blue. Not really necessary feature, but I can think of a few situations where it would be useful.
In the obj. section of scripting, there should be the commands that return the objects x or y coordinates on the screen, and -1 if its not on the screen. Something like:
obj.screenpos.x;
Not on the screen also would include being in a portal not currently drawn.

I think I heard something about a feature lock? Sorry if this is a bad time to suggest.
Gordon CSA Wrote:This idea came out of the blue. Not really necessary feature, but I can think of a few situations where it would be useful.
In the obj. section of scripting, there should be the commands that return the objects x or y coordinates on the screen, and -1 if its not on the screen. Something like:
obj.screenpos.x;
Not on the screen also would include being in a portal not currently drawn.

I think I heard something about a feature lock? Sorry if this is a bad time to suggest.

Not really a feature lock, just trying to fix bugs and not get distracted, feel free to ask away Smile Are you trying to check for visibility, here, or something else?

[>] Brian
Maybe it's for displaying health bars on top of his enemies heads.
That would be nice.
Macintosh HD Wrote:Maybe it's for displaying health bars on top of his enemies heads.

That would probably be better in core then in scripts -- right now in 2.3 you can turn on a feature to put their network names over remoted players heads (they are attached to a bone.) It would be the same thing, but scriptable.

[>] Brian
Yeah that kind of thing.
I'm trying to work my way to an RTS right now, and that came up. Fr'instance: in many RTS's units can be selected by drawing the box around them. So with this, if these three units position on the screen is between _ and _, they get selected. Wait, that would still require disconnecting the mouse from aiming, which I can't remember if that works right now. oh well.
Reference URL's