Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Dragging objects. Is it me???

Buster Peel
Spat the dummy.
Join date: 7 Feb 2005
Posts: 1,242
07-19-2005 22:40
I have an object that moves when I click and drag on it, and other objects that don't. I can't for the life of me figure out the difference, except that the one that moves is linked and has a script in it. (I created the objects, they're all non-physical.)

This is very annoying, becuase this object has linked prims that do different things when you click on them. But when I click on them in addition to triggering the touch event, the whole linked object moves. When someone else touches it, the touch event is triggered but the object does not move -- it only moves when I touch it.

I can't understand why this particular object does this, but I can't seem to make any other object do it. While it is useful to be able to drag an object around by clicking on it, it is NOT useful for this particular object. I have other objects that would be cool if I could move them around by clicking on them, like furniture, but they don't move. It is really baffling why one object can be moved around by clicking on it but not another. No rhyme or reason. (I plan to make it part of a vehicle later, so I don't want to lock it) . Anybody have any idea what I'm talking about?

Buster
Damanios Thetan
looking in
Join date: 6 Mar 2004
Posts: 992
07-20-2005 01:38
As soon as an object has a script with a 'touch' (or 'touch_start') event in it, it becomes draggable. Even when the object isn't physical. This behaviour seems to be new since 1.6.

It is fixable by adding the line:

CODE
llSetStatus(STATUS_BLOCK_GRAB,TRUE);


To the 'state_entry' event of the script.
It's probably possible to make a script with only this line in its 'state_entry' event and drop it in the object to stop it from moving on touch.
_____________________
Buster Peel
Spat the dummy.
Join date: 7 Feb 2005
Posts: 1,242
07-20-2005 16:44
Thanks, Damanios. The root prim used to have a touch, but doesn't now. I wonder if its related to having a touch event in a non-root prim. Anyway, I will try that. THANKS!