hugoasd Posted March 15, 2016 Posted March 15, 2016 is there a way to tell my script so say something as the owner?like sayAsOwner("my script wants me to say that"); btw i'm using latest firestorm viewer
0 Rolig Loon Posted March 15, 2016 Posted March 15, 2016 Well, it depends on what you mean. llOwnerSay will say things only to the owner. If you want it to say something as the owner, you'll just have to change its name temporarily to the owner's, as in string Owners_name = "Bob"; // Define the owner's namestring Hold_name = llGetObjectName(); // Save the object's namellSetObjectName(Owners_name); // Replace the object's name with the owner's namellSay(0,"Hello, avatar!"); // Say somethingllSetObjectName(Hold_name); // Restore the object's name Anyone receiving the message will see the owner's name show up as the sender, although it will be clear that it came from an object rather than the owner himself. (Your viewer displays object messages in a different color.) 1
Question
hugoasd
is there a way to tell my script so say something as the owner?
like sayAsOwner("my script wants me to say that");
btw i'm using latest firestorm viewer
1 answer to this question
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