Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

plx xplain me grab

Varun Blitz
Registered User
Join date: 22 May 2008
Posts: 62
06-20-2008 00:13
what do i mean by grabbing an object ??
i read it on the wiki but not able to understand it.
in mouselook how do i grab an object ??
does pressing ctrl and moving the object called grabbing ??
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
06-20-2008 02:08
To be able to grab an object it needs to be physical.
If it is not your own object, then it needs to have the permission set 'allow anyone to move'.

To grab an object, you move your mouse over it, then press and hold down the left mouse button. Then move your mouse around. You have now grabbed the object and are dragging it around.
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
06-20-2008 02:42
If you hold Ctrl you may drag non-physical objects, unless they have a script handling the touch events themselves. Fun to know also: to "touch" an object is to grab and de-grab it
_____________________
Varun Blitz
Registered User
Join date: 22 May 2008
Posts: 62
06-20-2008 03:01
From: Day Oh
If you hold Ctrl you may drag non-physical objects, unless they have a script handling the touch events themselves. Fun to know also: to "touch" an object is to grab and de-grab it



superb !! that's a gem of a piece of info i have got. thanx a tonne, now just lemme know that if i change the state which doesn't have touch in it, will i be able to move it ??
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
06-20-2008 03:23
From what I can tell, yea, as long as it doesn't have a touch_start, touch_end, or touch event handler in that state, you'll be able to 'drag' it that way

Alternately you can handle the drag movement in the touch event handler (you also wouldn't have to hold Ctrl anymore to drag a non-physical object, this way)

From: someone
default
{
touch(integer t)
{
llSetPos(llGetPos() + llDetectedGrab(0));
}
}
_____________________