Jump to content

cdf114 Zenfold

Resident
  • Posts

    11
  • Joined

  • Last visited

Posts posted by cdf114 Zenfold

  1. hello again another script problem trying to mod this free script i have to be linkable and a 1 prim door and for a boat i am building i have tried putting i  new lines for it but still no luck if anyone could help that would be great

    // If door is locked, the name of the avatar who locked it.
    // If door is not locked, the empty string ("").
    string gLockedBy = "";

    // This number must match the channel number of the lock
    // and unlock objects you want to use. If multiple doors
    // have the same channel, then a single lock can lock all of
    // them at once.
    integer gLockChannel = 243;

    default
    {
    state_entry()
    {
    llSay(0, "Door 1.0");
    llListen(gLockChannel, "", NULL_KEY, "");
    state closed;
    }
    }

    state closed
    {
    listen(integer channel, string name, key id, string message)
    {
    if (channel == gLockChannel)
    {
    if (message == "")
    {
    gLockedBy = "";
    //llTriggerSound("door unlock", 10.0);
    llSay(0, "unlocked");
    }
    else
    {
    gLockedBy = message;
    //llTriggerSound("door lock", 10.0);
    llSay(0, "locked");
    }
    }
    }

    touch_start(integer total_number)
    {
    string name = llDetectedName(0);
    if (name == gLockedBy || gLockedBy == "")
    {
    llTriggerSound("Door open", 0.3);

    rotation rot = llGetRot();
    rotation delta = llEuler2Rot(<0,0,PI/4>);
    rot = delta * rot;
    llSetRot(rot);
    llSleep(0.25);
    rot = delta * rot;
    llSetRot(rot);
    state open;
    }
    else
    {
    llTriggerSound("Door knock", 0.3);
    }
    }
    }

    state open
    {
    touch_start(integer num)
    {
    llTriggerSound("Door close", 0.3);

    rotation rot = llGetRot();
    rotation delta = llEuler2Rot(<0,0,-PI/4>);
    rot = delta * rot;
    llSetRot(rot);

    llSleep(0.25);
    rot = delta * rot;
    llSetRot(rot);

    state closed;
    }
    }

    thank you for reading 

    C. Zenfold

  2. hello 

    i am pretty new to scripting i am trying to change a sculpt animator to one that will change the sculpt in order when touched the script i have is a script i found on a website and currently i am having no luck moding it to touch it stays auto heres the script i am having trouble with

    integer numsculpts;
    integer sculptindex = -1;

    default
    {

    state_entry()
    {
    numsculpts = llGetInventoryNumber(INVENTORY_TEXTURE);
    llSetTimerEvent( 5 );
    }

    timer()
    {
    sculptindex++;
    if(sculptindex >= numsculpts) {
    sculptindex = 0;
    }

    llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, llGetInventoryName(INVENTORY_TEXTURE, sculptindex), PRIM_SCULPT_TYPE_SPHERE]);
    }
    }// END //

     

    thank you for reading 

    C.Zenfold

  3. hello

    i have been recently been trying to drive a new car i have build and it moves then after 1 second of moving it starts to slow down like a rubber band is holding it back and stop i have tried some of my other cars i have bought and built and the same happens its not just the build i am making its happening car's i have bought. please help 

    thanks for reading 

    cdf114

  4. hi there

    at the moment i am building a green goddess (old type of fire engine) and i used a freebie car as the base for it i have replaced all the prims for about 4 and they are all full perms and all the scripts are full perms but when i take it to give it to a friend its saying No modify and No trasfer should i start over again or should i change the scripts ether way thanks for reading and please help **kicks the Green Goddess**

  5. hi there

    i am a very big mac user and i know they have brought out a new OS upgrade called lion and i am worried if i get this my 3rd party viewer phoenix will not  work with the upgrade is there any known troubles at the moment with being on lion? 

     

    thanks for reading 

    Chris Zenfold

×
×
  • Create New...