conrad Evanier Posted July 17, 2011 Share Posted July 17, 2011 Hello all, im creating a script that i need to get info from the root prim description, i have done this with the name using llGetLInkName which is great but i would prefer it to be the description so the name of the object dosnt have to change is it possible? why isnt there llGetLinkDesc lol this script gos in a child prim . Link to comment Share on other sites More sharing options...
Acheron Gloom Posted July 17, 2011 Share Posted July 17, 2011 llGetLinkPrimitiveParams(LINK_NUM, [PRIM_DESC]); llSetLinkPrimitiveParamsFast(LINK_NUM, [PRIM_DESC, STRING_VALUE]); Link to comment Share on other sites More sharing options...
conrad Evanier Posted July 17, 2011 Author Share Posted July 17, 2011 llDumpList2String([llGetLinkName(LINK_ROOT), llList2String(llGetLinkPrimitiveParams(LINK_ROOT, [PRIM_DESC]), 0)],""); ok this works for getting a key thats added to root desription, llGetLinkDesc would be much nicer tho lmao thanks for pointing me in the right direction Acheron:) Link to comment Share on other sites More sharing options...
conrad Evanier Posted July 17, 2011 Author Share Posted July 17, 2011 Nope sorry lol that still gets the name as well. This is the right version and its dose just as i need il put it here incase anyone else is searching for this, partner = llList2String(llGetLinkPrimitiveParams(LINK_ROOT, [PRIM_DESC]),0); this makes a nice easy way to drop a partner or friends key in to a linked object so they can get menus from a child prim Link to comment Share on other sites More sharing options...
Void Singer Posted July 17, 2011 Share Posted July 17, 2011 save yourself a variable and a function call and use a string cast instead of list2string. it'ts not prefect for numerical data types but should be perfectly fine for string types. Link to comment Share on other sites More sharing options...
conrad Evanier Posted July 17, 2011 Author Share Posted July 17, 2011 Ah yes thanks Void i was over complicating that a bit gona go and sort that out now ty. 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