Jump to content
  • 0

say as owner?


hugoasd
 Share

You are about to reply to a thread that has been inactive for 2936 days.

Please take a moment to consider if this thread is worth bumping.

Question

1 answer to this question

Recommended Posts

  • 0

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.)

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2936 days.

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
 Share

×
×
  • Create New...