Jump to content

Read from root


Shihan Feiri
 Share

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

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

Recommended Posts

Its late and mine brain have been little slow now on wiki. So the fast way is to ask here.

 

I have 2 prims linked- root and child.

 

In root is notecard. In child is script.

What's the code to read notecard from root prim if I  click (Touch_start) child prim with reading notecard content script .

 

mybe with LINK_ROOT? but where to put that...

 

 

Link to comment
Share on other sites

If you only want the notecard read when someone touches a particular prim, you could test, in the touch event in the root prim, for what llDetectedLinkNumber is before reading the card.

For what it's worth, I generally try to read notecards once, when the script starts, and store the contents in a list or variables, since it's a lot quicker to refer to those at run time than it is to keep on reading a card each time someone touches the prim.

Link to comment
Share on other sites

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