Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Touch event in scripts allows owner to move an object anytime

Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
04-24-2005 23:46
Looks like touch events in scripting basically make an object grab and drag-able. I've already bugged this.

1. Rez a new cube, physics off.
2. Place inside the script below.
3. Close your Edit Object window.
4. Left-click and hold the button on the prim.
5. Move your mouse as if you were dragging around a physics object.
Observed results:
You are able to move it around.
Expected results:
Since I'm not in edit mode, and the object is not physics, I should not be able to "grab" it and move it around!
Notes:
- Fresh to 1.6
- This means anything with a "touch" event script can become out of place just touching it quickly! That's BAD.
Script:
default
{
touch(integer num)
{
}
}
_____________________
Hiro Pendragon
------------------
http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio

Visit my SL blog: http://secondtense.blogspot.com
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
04-25-2005 00:30
I think that's there for llDetectedGrab() - changing this would most likely break scripts that use it.
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
04-25-2005 01:39
From: Adam Zaius
I think that's there for llDetectedGrab() - changing this would most likely break scripts that use it.

*boggled*
Okay, this is since 1.6, I'm pretty sure. Doesn't llDetectedGrab() predate 1.6?

Have you tried my bug yet? It's just completely conflicting with how things are supposed to work.
_____________________
Hiro Pendragon
------------------
http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio

Visit my SL blog: http://secondtense.blogspot.com
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
04-25-2005 02:18
From: Hiro Pendragon
*boggled*
Okay, this is since 1.6, I'm pretty sure. Doesn't llDetectedGrab() predate 1.6?

Have you tried my bug yet? It's just completely conflicting with how things are supposed to work.
This predates 1.6

One of the first things I discovered as a noobie is that grabbing a touch_start() enabled prim meant having to be very careful or I could move it and even rotate it if I weren't. Later I even used this to my advantage for a cookie spewing "gun"... and got a freind suspended for 3 hours (gotta read them signs!) :)
_____________________
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
04-25-2005 03:24
Try setting status on STATUS_BLOCK_GRAB to false. This behavior has been around as long as I can remember.
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
04-25-2005 14:42
I'll be damned. :eek:

I've had an ongoing issue that is so bizarre, I've never gone much beyond bug reporting it - because there's no good way to explain it without sounding crazy.

I have a scripted object that is a large sign indicating the current music stream being played on the parcel.

When an authorized person clicks the sign, the texture changes to reflect the new stream - and updates llSetParcelMusicURL()

Thing is, about once every several weeks - the sign will disappear.

It doesn't actually disappear - what I found, was it will "drift" about 1 meter outside my structure.

The same thing seems to happen to other objects I have that use touch - such as my teleporters. Every so often, I'll find the teleport cube "in space" - several meters away from where it should be.

I wonder if this move-on-touch behavior is the root cause of my issue here.

Note that I've been experiencing this behavior since before 1.6 - the earliest confirmed incident being sometime in the first half of January.