Monday, 13 June 2011

These are a little backwards....

Here's a photo of my smoky self (naaaww) on a prim.  I paid $10 virtual dollars for that.  Better be worth it.

I did this a while back but last time I tried it wouldn't upload -_- the internet hates me.


There's my non smoky avatar looking at it.  COOL.

1 comment:

  1. vector top;
    vector bottom;
    integer counter = 1;
    integer distance = 8; //this is the distance between the top and bottom of the elevators movement.
    float time = 10; //you will have to play with this value probably
    default
    {
    state_entry()
    {
    key id = llGetOwner();
    llListen(0,"",id,"");
    llSetStatus(STATUS_ROTATE_X| STATUS_ROTATE_Y| STATUS_ROTATE_Z, FALSE);
    }

    listen(integer channel, string name, key id, string message)
    {
    if(message == "align")
    {
    bottom = llGetPos();
    top = bottom + <0,0,distance>;
    llSetStatus(STATUS_PHYSICS,TRUE);
    llSleep(0.1);
    llMoveToTarget(bottom, 0.1);
    }
    if(message == "start")
    {
    llSetTimerEvent(time);
    }
    if(message == "stop")
    {
    llSetTimerEvent(0);
    }
    }

    timer()
    {
    if(counter > 0)
    {
    llMoveToTarget(bottom,2);
    }
    else
    {
    llMoveToTarget(top,2);
    }
    counter *= -1;
    }
    }

    ReplyDelete