Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
|
07-26-2009 02:33
Hi im somewhat puzzled i have a linkset with two scripts, one for a sit on the set and one for moving the set. that works I then added a script to animate part of the sets texture for the test i wanted to activate by touch -eg touch_start... with a llOwnerSay I do not get a touch option at all? Moving the mouse over the set does not alow for any touch (curser-change) and i can click on the set as crazy.. noting happens it like the script is ignored.. Can anyone explain? tyia ab ---- yes sorry Qui. its just so simple, but: //in the wheel default { state_entry() { llSetTimerEvent(0.20); } touch_start(integer total_number) { llSetTimerEvent(.20); }
timer() { //llOwnerSay("innn"); //alive
llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, ALL_SIDES,1,1,0, TWO_PI, .9);
} }
_____________________
BR ab
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
07-26-2009 03:12
Probably need to see whatever script has the touch_start() handler code. Many animate texture scripts stop themselves after running (something like "llSetScriptState(llGetScriptName(), FALSE);"  , assuming the texture animation is to be permanent. No idea if that's the problem here, but if the script isn't running, its touch_start() handler won't be active.
|
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
|
:/
07-26-2009 03:44
well i got irritated - there was absolutely no reason why this shouldent work, so i make a clipbaord dump of all and the hard and dirty deleted the script, clicked the 'new-script' button and pasted the clipboard in ...then it worked ?.. *sigh* i gues that just was the asset-server that was 'wreally wreally' funny :/
btw i think i now know why it it spelled ASSet-server ..
BR.
_____________________
BR ab
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
07-26-2009 07:37
Sorry, I wasn't in front of my computer when the source was attached. Just an observation that this is an extraordinarily odd (and laggy) script, as shown. Anything with a 0.2 timer is going to gobble up Spare Time on the sim. Also, as shown (which I assume isn't the intended end state of the script), it doesn't really matter if anybody touches the prim--the timer is set in state_entry, too, so five times a second it will turn on texture animation, whether or not anybody touches the prim. Of course, were the objective to turn on texture animation continuously, forever (which I also assume isn't the intent), no script would need to remain in the prim at all.
|
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
|
07-27-2009 01:13
yes i know, but this was only a test. the touch was to 'force' the timer initiation. It was totally dead as i told you. But thank you for the heads up BR
_____________________
BR ab
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
07-27-2009 04:59
From: Abraxes Binder i have a linkset with two scripts, one for a sit on the set and one for moving the set. that works I then added a script to animate part of the sets texture for the test i wanted to activate by touch -eg touch_start... with a llOwnerSay
I do not get a touch option at all? Moving the mouse over the set does not alow for any touch (curser-change) and i can click on the set as crazy.. noting happens it like the script is ignored.. Can anyone explain? The click action is probably not: CLICK_ACTION_TOUCH. It may have changed in another script or you may have done it in edit mode. What does the cursor show when it is over the object? A chair? money? box? You can change the click action in a script: http://wiki.secondlife.com/wiki/LlSetClickAction
_____________________
From Studio Dora
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-27-2009 10:18
might have been a physical object, which will default to a grab cursor, even if you specify touch... however the touch still works, it's just not shown as the default cursor (even if STATUS_BLOCK_GRAB is set to TRUE)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|