Wishbash Broom
Registered User
Join date: 3 Aug 2004
Posts: 8
|
08-09-2004 06:11
Hi, I have a problem with a scripted object.. I added in the default section a touch_start, but the touch in the pie-dial keep being greyed out.. It´s really a simple addition: touch_start(integer dete){ if(gIsOnline) { llInstantMessage(gName,"You have a visitor"); llWhisper(0,"I have sent an IM to " + gName ); } else { llWhisper(0,gName + " is offline, sorry..."); } }
Could someone make an educated guess on why the touch event isn't enabled ?
|
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
|
08-09-2004 08:34
Is your script actually running? (the "running" box in the bottom left of the script is checked)
Do you have multiple states? And some of the states don't have touch events? I've found that sometimes the pie menu doesn't keep up with script state changes like this. Put an empty touch_start event in the other states to fix this.
_____________________
Sarcasm meter: 0 |-----------------------*-| 10 Rating: Awww Jeeze!
|
Wishbash Broom
Registered User
Join date: 3 Aug 2004
Posts: 8
|
( Solved )
08-09-2004 10:36
I'm not sure what was the problem, but I copied the script to my library, deleted the script from the object, recreated the object, and then added the script again... that worked. Kinda workaround, and doesn't tell me what was wrong in the first place, but hey... since it worked... 
|