Jump to content
You are about to reply to a thread that has been inactive for 3187 days.

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

Question

Posted

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

  • 0
Posted

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
You are about to reply to a thread that has been inactive for 3187 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
×
×
  • Create New...