Jump to content
  • 0
Sign in to follow this  
hugoasd

say as owner?

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

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

Question

  • 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 1604 days.

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...