Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LSL - Get coordinates on mouseclick

CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
07-14-2004 02:00
I'd be intrested to see an event in LSL that will allow the script to pickup a coordinates vector by looking at the 3D area in which the user left-clicked with the mouse.

For example, left clicking on a spot on the ground next to you will call an event with a vector paramter that will pass the coordinates of the spot in the 3D world on which you left-clicked.

This sort of a feature can have multiple useful applications in scripting.
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
07-14-2004 02:08
I agree with da kitty, this would be cool. Although I'd suspect there would have to be some kinda localised limit to the function, cuz clicking with that fat little finger at certain angles could be interpreted within tens of meters. Like when you're selecting land and then go 'um.. thats nowhere NEAR where I was aiming!'
_____________________
Siobhan Taylor
Nemesis
Join date: 13 Aug 2003
Posts: 5,476
07-14-2004 05:10
Unfortunately, I can think of several ways this could be abused by griefers too...
_____________________
http://siobhantaylor.wordpress.com/
CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
07-14-2004 08:46
Fortunatly, virtually any function in LSL can be abused by griefers if you just put 10 seconds of a thought into it. :)

This event is no exception.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
07-14-2004 15:43
I would rather see this as an addition to the touch* events. Perhaps a new function: llDetectedTouchPosition which will return the position on the object's surface where the user touched.

==Chris
CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
07-15-2004 08:57
This would be nice as a touch event, though i'd still like to see a control() feature that obtains an XYZ from a world surface. 8)
Oz Spade
ReadsNoPostLongerThanHand
Join date: 23 Sep 2003
Posts: 2,708
07-16-2004 07:08
I think this would be handy, it'd help alot with making objects respond differently to where they were clicked, I.e. menu systems without using more prims and the like.

I endorse this feature.

I don't care how its handled really. :P
_____________________
"Don't anticipate outcome," the man said. "Await the unfolding of events. Remain in the moment." - Konrad
Neo Rebus
Registered User
Join date: 10 Apr 2004
Posts: 59
07-16-2004 08:38
I agree with this - I was just going to post a suggestion for llDetectedTouchPos() and llDetectedTouchFace() - where the ...Face() would return the face number that was touched, and ...Pos() would return the position (0..1,0..1) on the texture on that face that was touched. But any way to implement the SL equivalent of an image map would be very useful! (prim reduction galore for control panels)

- Neo Rebus