<div>To the group discussing the "Does OpenSim Fully Support Linden [Vehicle] Scripts? (read:  Han, Garmin, InuYasha, Wade, R.Gunther, Justin, Karen, M.E., etc.), </div>
<div> </div>
<div>I found a splendid "Wear your vehicle" script that works in the OpenSim-- see below.  Further, when the vehicle is worn in concert with an avatar flying, the script works for airplanes too (in the OpenSim)!</div>

<div> </div>
<div>Best,</div>
<div>Kay</div>
<div> </div>
<div><br>// Put this script in an object you wish to wear to appear to ride it, include any animation for the AV to assume, in the Root Prim's contents. First Attach to Pelvis, then you may just wear.</div>
<div>string SitAO = "DriveCar2";// Replace sit with the animation's name you include in object contents</div>
<div><br>default<br>{  <br>    attach(key id)<br>    {<br>        if(id)//tests if it is a valid key and not NULL_KEY and gets permission to read the contols keys and start animation<br>        {<br>            llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);<br>
            llStartAnimation(SitAO);//animation name is put here            <br>            llTakeControls(CONTROL_FWD |CONTROL_BACK |CONTROL_LEFT |CONTROL_RIGHT |CONTROL_ROT_LEFT |CONTROL_ROT_RIGHT |CONTROL_UP |CONTROL_DOWN |CONTROL_LBUTTON |CONTROL_ML_LBUTTON |0, TRUE, TRUE);//Takes controls but passes them on to the Avatar too<br>
            llPlaySound("Sportscarstarts",1);<br>            llSleep(1);<br>            llLoopSound("Sportscaridle",.75);                        <br>        }<br>        else<br>        {<br>            llStopAnimation(SitAO);//animation name is put here too   <br>
        }<br>    }<br>    <br>    <br>    control(key id, integer level, integer edge)//Event triggered when any key is pressed or relased<br>    {<br>        integer start = level & edge;//define start as key was pressed <br>
        integer end = ~level & edge;//define end as key was released<br>        integer held = level & ~edge;//define key is being held down<br>        integer untouched = ~(level | edge);//define that no keys are pressed</div>

<div><br>           if(start & CONTROL_FWD)<br>           {<br>                  //llSay(0,"Fwd Key was pressed");<br>            llMessageLinked(LINK_SET, 0, "RF", "");//sends messgage to all other scripts RF=Right Forward<br>
            llMessageLinked(LINK_SET, 0, "LF", "");//sends messgage to all other scripts LF=Left Forward<br>            llMessageLinked(LINK_SET, 0, "SF", "");//sends messgage to all other scripts SF=Spin Forward<br>
            llLoopSound("Sportscardriving",1);//Driving sound<br>           }<br>                      <br>            if(end & CONTROL_FWD)<br>           {<br>                  //llSay(0,"Fwd Key was released");<br>
            llMessageLinked(LINK_SET, 0, "RS", "");//sends messgage to all other scripts  RS=Right Stop<br>            llMessageLinked(LINK_SET, 0, "LS", "");//sends messgage to all other scripts  LS=Left Stop<br>
            llMessageLinked(LINK_SET, 0, "SS", "");//sends messgage to all other scripts SF=Spin Stop<br>            llLoopSound("Sportscaridle",.5);//Idle Sound<br>           }<br>           <br>
           <br>           if(start & CONTROL_BACK)<br>           {<br>            llMessageLinked(LINK_SET, 0, "RR", "");//sends messgage to all other scripts  RS=Right Reverse<br>            llMessageLinked(LINK_SET, 0, "LR", "");//sends messgage to all other scripts  LS=Left Reverse<br>
            llMessageLinked(LINK_SET, 0, "SR", "");//sends messgage to all other scripts SF=Spin Reverse<br>           }<br>           if(end & CONTROL_BACK)<br>           {<br>            llMessageLinked(LINK_SET, 0, "RS", "");//sends messgage to all other scripts  RS=Right Stop<br>
            llMessageLinked(LINK_SET, 0, "LS", "");//sends messgage to all other scripts  LS=Left Stop<br>            llMessageLinked(LINK_SET, 0, "SS", "");//sends messgage to all other scripts SF=Spin Stop<br>
           }<br>          <br>           if((start & CONTROL_RIGHT) | (CONTROL_ROT_RIGHT == (start)))<br>           {<br>            llMessageLinked(LINK_SET, 0, "TR", "");//send TR to front tires<br>
            llMessageLinked(LINK_SET, 0, "LF", "");//sends messgage to all other scripts  LS=Left Forward<br>           }<br>            if((end & CONTROL_RIGHT) | (CONTROL_ROT_RIGHT == (end)))<br>
           {<br>                       if(held & CONTROL_FWD)//If Forward is held don't stop<br>                       {}<br>                       else<br>                        {<br>                        llMessageLinked(LINK_SET, 0, "LS", "");//sends messgage to all other scripts  LS=Left Stop<br>
                        }<br>            llMessageLinked(LINK_SET, 0, "TS", "");//Straighten tires when key released<br>           }<br>           <br>           if((start & CONTROL_LEFT) | (CONTROL_ROT_LEFT == (start)))<br>
           {<br>            llMessageLinked(LINK_SET, 0, "TL", "");//send TL to front tires<br>            llMessageLinked(LINK_SET, 0, "RF", "");//sends messgage to all other scripts  RF=Right Forward<br>
            }<br>           if((end & CONTROL_LEFT) | (CONTROL_ROT_LEFT == (end)))<br>           {<br>                       if(held & CONTROL_FWD)//If Forward is held don't stop<br>                       {}<br>
                       else<br>                       {   <br>                        llMessageLinked(LINK_SET, 0, "RS", "");//sends messgage to all other scripts  RS=Right Stop<br>                        }<br>
            llMessageLinked(LINK_SET, 0, "TS", "");//Straighten tires when key released<br>            } <br>             <br>            // for flying<br>           if(level & CONTROL_UP)<br>           {<br>
                  //llSay(0,"Page Up");<br>           }<br>             <br>           if(level & CONTROL_DOWN)<br>           {<br>                  //llSay(0,"Page Down");<br>           }                                                    <br>
            // End of FLying                                                                                            <br>    }<br>    <br>    <br>    <br>    <br>    <br>    <br>}</div>
<div> </div>
<div><br><br> </div>