Jump to content

I think I found a very strange bug when using llRezObject. I need someone to confirm for me.


Emily Aries
 Share

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

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

Recommended Posts

string test_string = "What is going on?!";
 
default
{
    state_entry()
    {
        string test_string = "";
        llOwnerSay("So we clear the test string... \"" + test_string + "\"");
        llSleep(1.0);
             
        llRezObject("ball", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 0);
    }
 
    object_rez(key id)
    {
        llOwnerSay("But it apparently didn't change at all! \"" + test_string + "\"");
        llRegionSayTo(id, -20, test_string);
    }
}

 For some odd reason the test_string variable gets reset when using llRezObject.

Link to comment
Share on other sites

Try

string test_string = "What is going on?!"; default{    state_entry()    {        test_string = ""; //WITHOUT declaring test_string as a new local variable        llOwnerSay("So we clear the test string... \"" + test_string + "\"");        llSleep(1.0);                     llRezObject("ball", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 0);    }     object_rez(key id)    {        llOwnerSay("But it apparently didn't change at all! \"" + test_string + "\"");        llRegionSayTo(id, -20, test_string);    }}

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3593 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...