<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I'm curious about something. Unless you
      have an old, original, Blamgate, made by Pathfinder Lester, then
      all other Blamgates are made by Shaun Emerald (me - I started with
      his and have since rewritten it completely). But neither his nor
      mine use llVolumeDetect() ...<br>
      <br>
      -ste<br>
      <br>
      On 10/17/14, 4:23 PM, Dahlia Trimble wrote:<br>
    </div>
    <blockquote
cite="mid:CAAQTD4W2jSxTQksSLk2TRhmU9qwk9fo1Wwnq8oSCUmd72StPRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Assuming you're correct about it losing the property after
          a restart, I'd think this test would work in either SL or
          OpenSimulator:<br>
          <br>
          changed(integer what)<br>
          {<br>
        </div>
                if (what & (CHANGED_REGION_START |
        CHANGED_REGION_RESTART))<br>
                 {<br>
                        
        llVolumeDetect(FALSE);    // toggle bug fix in Opensim<br>
                        
        llVolumeDetect(TRUE);<br>
                 }<br>
        }<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Oct 17, 2014 at 10:07 AM, Fred
          Beckhusen <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:fred.b@mitsi.com" target="_blank">fred.b@mitsi.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">I use
            llVolumeDetect()  to detect avatar collisions to trigger
            game effects and teleports when an avatar falls into water
            or fire, or walks into a rabbit hole.<br>
            <br>
            The widely used hypergrid "Blamgate" teleporter I based my
            work on would sometimes not work after a reset.   The
            llVolumeDetect prim property did not get preserved after a
            restart.<br>
            <br>
            I eventually figured out that a changed()  event with the
            Opensim-specific CHANGED_REGION_RESTART ( not
            CHANGED_REGION_START) flag is needed to turn
            llVolumeDetect(FALSE) and llVolumeDetect (TRUE) again. This
            will turn the collision off and on again. I have found this,
            and only this, works reliably.<br>
            <br>
            // Works in<br>
            <br>
            default<br>
            {<br>
                state_entry()     {<br>
                    llVolumeDetect(TRUE);<br>
                }<br>
                collision_start(integer total_number)    {<br>
                    llSay(0, "Bumped: "+(string)total_number);<br>
                }<br>
                changed(integer what)    {<br>
                    if (what & (CHANGED_REGION_RESTART)    // not
            CHANGED_REGION_START, that is for Second Life, REstart is
            for Opensim<br>
                    {<br>
                        llVolumeDetect(FALSE);    // toggle bug fix in
            Opensim<br>
                        llVolumeDetect(TRUE);<br>
                    }<br>
                }<br>
            }<br>
            <br>
            --ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----<br>
            Ferd Frederix/Fred K. Beckhusen<br>
            <a moz-do-not-send="true" href="http://www.outworldz.com"
              target="_blank">http://www.outworldz.com</a><br>
            <br>
            _______________________________________________<br>
            Opensim-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Opensim-users@opensimulator.org"
              target="_blank">Opensim-users@opensimulator.org</a><br>
            <a moz-do-not-send="true"
              href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users"
              target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Opensim-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a>
<a class="moz-txt-link-freetext" href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>