Jump to content

Move an object to touched prim (Where do I start?)


Raena Parx
 Share

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

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

Recommended Posts

Hello. I am not a scripter, but can do a bit here and there.  I'm currently creating a project which includes scripting for prim babies.  I would like to have a scripted object that the mom can touch and give permission for her rezzed prim baby to move to that location/position.  I have absolutely no idea how to go about this since we are dealing with prims and not avatars.  Can anyone give me an idea what type of commands to use? Thank you so much. 🙂

Link to comment
Share on other sites

5 hours ago, Raena Parx said:

 I would like to have a scripted object that the mom can touch and give permission for her rezzed prim baby to move to that location/position.  Can anyone give me an idea what type of commands to use?

basic way to do this

1) Mom touches the object. http://wiki.secondlife.com/wiki/Touch_start

2) Object script sends message to baby script saying "I am here at XYZ region coordinates.  http://wiki.secondlife.com/wiki/LlRegionSay  http://wiki.secondlife.com/wiki/LlGetPos

3) Baby listens for message: http://wiki.secondlife.com/wiki/Listen

4) on receipt of message, baby goes to object: if physical baby http://wiki.secondlife.com/wiki/LlMoveToTarget : if non-physical baby http://wiki.secondlife.com/wiki/LlSetPos

Link to comment
Share on other sites

Thank you again for the links.  I looked over them and played a bit. But the logic is missing a piece.  The prim baby is an object owned by the mom, so I cant add a listening script to the baby.  Even if the touched object talks to the mom directly, and the mom has the baby attached, how would she send the attached baby to that position, rather than moving herself to it?  Again, your help is greatly appreciated. 🙃

 

 

Link to comment
Share on other sites

2 minutes ago, Raena Parx said:

Thank you again for the links.  I looked over them and played a bit. But the logic is missing a piece.  The prim baby is an object owned by the mom, so I cant add a listening script to the baby.  Even if the touched object talks to the mom directly, and the mom has the baby attached, how would she send the attached baby to that position, rather than moving herself to it?  Again, your help is greatly appreciated. 🙃

 

if the baby is no-modify permissions (you can't add a script to it as you have discovered) then you wont be able to enhance it like you are wanting to

you could try asking the person who made the baby if they could provide you with a modify version, explaining to them what you are wanting to try and do yourself. They may be intrigued enough to give you a modify version for this reason

 

Link to comment
Share on other sites

On 2/4/2021 at 2:31 AM, Mollymews said:

if the baby is no-modify permissions (you can't add a script to it as you have discovered) then you wont be able to enhance it like you are wanting to

you could try asking the person who made the baby if they could provide you with a modify version, explaining to them what you are wanting to try and do yourself. They may be intrigued enough to give you a modify version for this reason

 

I don't have any expertise on this sort of thing at all, but I contemplated this problem recently when I wanted to make an atomic bomb that I could touch and trigger, but that would not go off right in front of me, but would go off far away on the sim. I tried to get the "rez object on touch correctly" to have very big numbers in it, but since I can never visualize that construction to pick out sensible numbers, I do it by trial and error and it takes forever.

So I realized like setting an "off sim" waterfall, I could take a 64-meter stick, make it as thin as it would go, attack it to the rocket or bomb trigger, then have that be the thing that rezzes out, so it is far away from me when I touch it. In order to have it look realistic, you have to make it invisible, but put it near enough to a button so it seems like you are touching a button when in fact you are touching the long stick. So that worked for the bomb (and put them on "temp" so they clear away). 

To have this work on a baby, you would have to have the baby like at the end of the stick like a wheel, then put "rotate" so that the baby crawls around at least in a circle.

OK, as I said, I don't know what I'm talking about.

Link to comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...