Shihan Feiri Posted June 26, 2011 Share Posted June 26, 2011 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 More sharing options...
Darkie Minotaur Posted June 26, 2011 Share Posted June 26, 2011 You can't read a notecard from prim A that is in prim B - linked or not. You cann give the nC from B to A or pass the contents from a reader in prim B to prim A, but you need a script in prim A Link to comment Share on other sites More sharing options...
Innula Zenovka Posted June 26, 2011 Share Posted June 26, 2011 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 More sharing options...
Recommended Posts
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