TonyBowlin Posted August 22, 2018 Share Posted August 22, 2018 So what I'm trying to do here is have a listen on channel 4. that message coming in would be. "kb(Legacy name)" Example: ""kbTonyBowlin Resident" And the legacy name changes often so the only consistency in the message is the kb at the start Now I want this listen to get that message and then llSetObjectDesc(killer); killer would be the end result of a llDeleteSubString of the first two characters. I'm just not sure how to have the listen get that kb message. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted August 22, 2018 Share Posted August 22, 2018 If you want to get rid of the first two characters of the message received in the listen event, try message = llDeleteSubString(message,0,1); (People start counting at 1. Computers start at 0). 1 Link to comment Share on other sites More sharing options...
Xiija Posted August 22, 2018 Share Posted August 22, 2018 (edited) in your listen... if( llGetSubString(message, 0, 1) == "kb") { llSetObjectDesc( llDeleteSubString(message,0,1) ); } Edited August 22, 2018 by Xiija 1 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