Jump to content

how to obtain the identification or name of an object, from the script of another object


oscrojas
 Share

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

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

Recommended Posts

Hello community! ,
I have an object-circle with an id and name, and another as a square, what I am doing is converting the square as a 
button so that when I touch it the other objetc-circle is positioned in some area,

I need to get the id of the circle object from the square object script.
if someone has a code snippet, it would help me a lot
thanks
Edited by oscrojas
Link to comment
Share on other sites

I don't understand.  Are the two objects linked?  If so, all you need to know is their link numbers.  Then control movement from a single script in the root prim.  If not, then you will need a script in each object.  You can get them to talk/listen to each other if you use a unique chat channel.. You don't need to know their names or UUIDs.

  • Thanks 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1570 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...