Jump to content

Dracco Slavicz

Resident
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Dracco Slavicz

  1. Hello everyone, I'm doing a plane, I have almost all finished and now im bearing with sounds. And there is a problem with crashes, I don't know how detect the crash to execute llPlaySound. Have solution my request?

  2. Hello everyone, I am trying to make a script that detect when one object have one determinated notecard in it.

    To do this, I did an object with a notecard inside named Config and then i did this script but never recognize the notecard.

    What is i am doing wrong?

    default
    {
        state_entry()
        {
    
            if (llGetInventoryPermMask("Config", PERM_ALL) == 1)
            
            {
                llSay(PUBLIC_CHANNEL, "Found \"Config\" notecard in this object.");
            }
            else
            {
                llSay(PUBLIC_CHANNEL, "there must be exactly one notecard called \"Config\" in this object.");
            }
        }
    }
  3. I have working this one for the horizontal rotate, and works but i cant to do the vertical one rotation.

     

    key model;integer tog=0;vector lookat; rotation Vec2RotHor( vector V ){    V = llVecNorm( V );    vector UP = < 0.0, 0.0, 1.0 >;    vector LEFT = llVecNorm(UP%V);    V = llVecNorm(LEFT%UP);     return llAxes2Rot(V, LEFT, UP);} default{    touch (integer n)    {        llSetTimerEvent( 0.2 );        model = llDetectedKey(0);    }     timer()    {        lookat = llList2Vector( llGetObjectDetails( model, [OBJECT_POS]), 0 );        if ( lookat != ZERO_VECTOR )        {            if ( !tog )            {                llSetRot( Vec2RotHor( lookat - llGetPos()));            }        }    }}

     

×
×
  • Create New...