Icky Spot Posted October 27, 2011 Share Posted October 27, 2011 Could somone please tell me why this isn't working on any prim that i am not the creator of? Works fine on prims i create. touch_start(integer num_detected) { string creator; creator = llKey2Name(llGetCreator()); llSetObjectName(creator); } Sorry, i'm not a very good scripter. Link to comment Share on other sites More sharing options...
Rival Destiny Posted October 27, 2011 Share Posted October 27, 2011 If you are not the creator and the prim is no modify, then you will be unable to modify the prim. Silly question I know but um, doesn't that script change the name of the creator in modifiable objects? Link to comment Share on other sites More sharing options...
Void Singer Posted October 27, 2011 Share Posted October 27, 2011 llKey2Name returns"" if the key is not of an avatar that is currently (or within the last ~30sec) on the region. you would need to use llRequestAgentData instead 1 Link to comment Share on other sites More sharing options...
Luke Poplin Posted October 27, 2011 Share Posted October 27, 2011 key owner_name_query; default{ touch_start(integer num_detected) { owner_name_query = llRequestAgentData( llGetCreator() , DATA_NAME); } dataserver(key queryid, string data) { if ( owner_name_query == queryid ) { llSetObjectName(data); } }} 1 Link to comment Share on other sites More sharing options...
Icky Spot Posted October 28, 2011 Author Share Posted October 28, 2011 Thanks Void and Luke! I'll give that a try and work it into my script. :matte-motes-tongue: Link to comment Share on other sites More sharing options...
Icky Spot Posted November 1, 2011 Author Share Posted November 1, 2011 It works perfectly guy, thanks again... one more question, Are there PrimitiveParam calls for these: llSetSitText(""); llSetTouchText(""); llSetTextureAnim( FALSE , ALL_SIDES, 1, 1, 0, 0, 0.0 ); llParticleSystem([]); I couldn't find how to place those witihin llSetPrimitiveParams... so i left them apart, the script still works, but i'm like totally picky about this sort of thing and would like everything within llSetPrimitiveParams. The only place i was looking was here: http://wiki.secondlife.com/wiki/LlSetPrimitiveParams Link to comment Share on other sites More sharing options...
Rolig Loon Posted November 1, 2011 Share Posted November 1, 2011 Nope. They have their own separate functions. 1 Link to comment Share on other sites More sharing options...
Icky Spot Posted November 2, 2011 Author Share Posted November 2, 2011 Okay, thanks! I'll stop looking then. 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