Jump to content

Move on touch - for a particular prim.


You are about to reply to a thread that has been inactive for 610 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Give the prim in question an appropriate name, like "handle" and then, In the touch_start event, test for 

if(llGetLinkName(llDetectedLinkNumber(0))=="handle"){//if the name of the prim that's just been touched is "handle")
	//then move the object
}

 

Edited by Innula Zenovka
  • Like 3
Link to post
Share on other sites

Just remember  ... that approach will work for all prims except the root prim in the linkset.  If you want to move only the linkset, then you have to move the entire linkset first .... then move all prims except for the root back again.   If you find that you are always wanting to move the root prim, it's time to relink the object and make a different prim the root.

Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 610 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...