|
falney Finney
Freedom is just a word
Join date: 18 Dec 2006
Posts: 66
|
05-26-2009 11:03
Hey. Quick yes no question.
Is their any way to get llDetectedTouchUV() to work while left click is set to anything other than touch/grab?
Ive been playing with it for best part of an hour now and curious as to wether Im waisting my time or not.
Doesnt matter if its a no. Will just have to make it "push once for selection - press again to pay"
_____________________
Self proclaimed Genius
Pessimist is only a name that an optimist calls a realist!
Heterosexuality is just a fancy word for legalized sexism
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
05-26-2009 11:27
It will not work without some work around. You can shift with: llSetClickAction( CLICK_ACTION_PAY ); when the prim is touched. Then shift back with: llSetClickAction( CLICK_ACTION_TOUCH ); when either the timer event or another event happens. Not very straight forward... but it can work  ( ACTION_PAY is just an example )
_____________________
From Studio Dora
|
|
falney Finney
Freedom is just a word
Join date: 18 Dec 2006
Posts: 66
|
05-26-2009 11:42
Thats what I was thinking. - work around. As I said it means clicking once to make the choice and second to execute the purchase.
float X; float Y; state_entry() { llSetClickAction(CLICK_ACTION_TOUCH); } touch_start(integer total_number) { vector UV = llDetectedTouchUV(0); float X = UV.x; float Y = UV.y; llSetClickAction(CLICK_ACTION_PAY); } money(key id, integer amount) { //Do Stuff llSetClickAction(CLICK_ACTION_TOUCH); }
_____________________
Self proclaimed Genius
Pessimist is only a name that an optimist calls a realist!
Heterosexuality is just a fancy word for legalized sexism
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
05-26-2009 12:03
Exactly what I did, but you need a timer to reset to 'touch action' in case nobody trigger the money event  It is silly you have to do it this way. But it works, people can understand it and it is functioning. In this thread: /54/3a/313822/1.htmlthe same subject was up and I posted my best solution 
_____________________
From Studio Dora
|