Jump to content

amarock Amat

Resident
  • Posts

    390
  • Joined

  • Last visited

Posts posted by amarock Amat

  1. Would love a chance to learn korean, in my spare time ,and possibly expand my knowledge. I know it is not something that can be picked up in mere monthes, and would love to dedicate myself in learning  hangul, although at this moment would be more focused on the speak aspect of it. 

     

     

    Thank you 

     

    amarock

  2. Would love a chance to learn korean, in my spare time ,and possibly expand my knowledge. I know it is not something that can be picked up in mere monthes, and would love to dedicate myself in learning  hangul, although at this moment would be more focused on the speak aspect of it. 

     

     

    Thank you 

     

    amarock

  3. This help? 

    I was thinking of setting the Linkset postions of 

     

    If Linkset,1  balh balhb albah controls

     

    else just sit

     

    float forward_power = 10; //Power used to go forward (1 to 30)float reverse_power = -10; //Power ued to go reverse (-1 to -30)float turning_ratio = 5.0; //How sharply the vehicle turns. Less is more sharply. (.1 to 10)string sit_message = "Ride"; //Sit messagedefault{state_entry(){llSetSitText(sit_message);// forward-back,left-right,updownllLinkSitTarget(1,<0.2,0,0.45>,ZERO_ROTATION);llLinkSitTarget(2,<1,0,.45>,ZERO_ROTATION);llSetCameraEyeOffset(<-12, 0.0, 5.0>);llSetCameraAtOffset(<1.0, 0.0, 2.0>);llSetVehicleFlags(0);llSetVehicleType(VEHICLE_TYPE_BOAT);llSetVehicleFlags(VEHICLE_FLAG_HOVER_UP_ONLY | VEHICLE_FLAG_HOVER_WATER_ONLY);llSetVehicleVectorParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, <1, 1, 1> );llSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, 2 );llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0, 0, 0>);llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 1);llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 0.05);llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_TIMESCALE, 1 );llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 5 );llSetVehicleFloatParam( VEHICLE_HOVER_HEIGHT, 0.15);llSetVehicleFloatParam( VEHICLE_HOVER_EFFICIENCY,.5 );llSetVehicleFloatParam( VEHICLE_HOVER_TIMESCALE, 2.0 );llSetVehicleFloatParam( VEHICLE_BUOYANCY, 1 );llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 3 );llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 10 );llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 2 );llSetVehicleFloatParam( VEHICLE_BANKING_EFFICIENCY, 1 );llSetVehicleFloatParam( VEHICLE_BANKING_MIX, 0.1 );llSetVehicleFloatParam( VEHICLE_BANKING_TIMESCALE, .5 );llSetVehicleRotationParam( VEHICLE_REFERENCE_FRAME, ZERO_ROTATION );}changed(integer change){if (change & CHANGED_LINK){key agent = llAvatarOnSitTarget();if (agent){ if (agent != llGetOwner()){llMessageLinked(LINK_ALL_CHILDREN , 0, "start", NULL_KEY);llSleep(.4);llSetStatus(STATUS_PHYSICS, TRUE);llSleep(.1);llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);}else{llMessageLinked(LINK_ALL_CHILDREN , 0, "start", NULL_KEY);llSleep(.4);llSetStatus(STATUS_PHYSICS, TRUE);llSleep(.1);llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS);}}else{llSetStatus(STATUS_PHYSICS, FALSE);llSleep(.1);llMessageLinked(LINK_ALL_CHILDREN , 0, "stop", NULL_KEY);llSleep(.4);llReleaseControls();llTargetOmega(<0,0,0>,PI,0);llResetScript();}}}run_time_permissions(integer perm){if (perm){llTakeControls(CONTROL_FWD | CONTROL_BACK | CONTROL_DOWN | CONTROL_UP | CONTROL_RIGHT | CONTROL_LEFT | CONTROL_ROT_RIGHT | CONTROL_ROT_LEFT, TRUE, FALSE);}}control(key id, integer level, integer edge){integer reverse=1;vector angular_motor;//get current speedvector vel = llGetVel();float speed = llVecMag(vel);//car controlsif(level & CONTROL_FWD){llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <forward_power,0,0>);reverse=1;}if(level & CONTROL_BACK){llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <reverse_power,0,0>);reverse = -1;}if(level & (CONTROL_RIGHT|CONTROL_ROT_RIGHT)){angular_motor.z -= speed / turning_ratio * reverse;angular_motor.x += 15;}if(level & (CONTROL_LEFT|CONTROL_ROT_LEFT)){angular_motor.z += speed / turning_ratio * reverse;angular_motor.x -= 15;}llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, angular_motor);} //end control } //end default

     

     

     

  4. So ive been fiddling about and am having a issue, of where i use 

     

    the linksit  method for multiple sits

     

    and it seems it doesnt care which order folks sit, it gives permissions of boat controls randomly ? Any suggetions?

  5. Evening folks hiring today, for a listen based firing mechnism for a prim to fire something at set distances of 15 meters , 30 meters, and 75 meters  with a arch .... this is not a worn item but a sort of motar like function in a prim on the floor

  6. So, am brain dead and strugglign to rember, on how to make a avatar not move, I am making a sort of like crossbow turrent, but I don't want folks to cheat and walk half a mile away while fireing it, any suggestions?

     

    key toucher;
    string toucherS;
    float SPEED         = 60.0;         
    integer LIFETIME    = 7;            
    float DELAY         = 0.2;          
    vector vel;                          
    vector pos;                         
    rotation rot;                       
    integer in_use;
    integer have_permissions = FALSE;   
    integer armed = TRUE;               
    fire()
    {
        
            rot = llGetRot();               
            vel = llRot2Fwd(rot);           
            pos = llGetPos();               
            pos = pos + vel;                
            pos.z += 0.0;                   
            vel = vel * SPEED;              
            llTriggerSound("shoot", 1.0);
            llRezObject("bullet", pos, vel, rot, 1); 
    }
    default
    {
        state_entry()
        {
           in_use = FALSE;        
        }
        touch_start(integer total_number)
        {
            if(in_use == FALSE)
            {
                toucher = llDetectedKey(0);
                llRequestPermissions(toucher, PERMISSION_TAKE_CONTROLS|PERMISSION_TRIGGER_ANIMATION);   
                llSetText("Requesting Permissions", <1,1,1>, 1); 
            }
            if(in_use == TRUE) 
            {
                if(llDetectedKey(0) == toucher)
                {
                llReleaseControls();
                llSensorRemove();
                llSetRot(<-0.00000, -0.00000, 0.70711, 0.70711>);
                llSetText("", <1,1,1>, 1); 
                in_use = FALSE;
                }
            }              
        }
        sensor(integer sense)
        {
            rotation k = llDetectedRot(0);
            llRotLookAt(k, .1, .1);
        }
        no_sensor()
        {
            llReleaseControls();
            llSensorRemove();
            llSetRot(<-0.00000, -0.00000, 0.70711, 0.70711>);
            llSetText("", <1,1,1>, 1); 
            in_use = FALSE;
        }
        run_time_permissions(integer perm)
        {
            if(perm)
            {
                llSetText("", <1,1,1>, 1);
                llTakeControls(CONTROL_ML_LBUTTON, TRUE, FALSE);
                llSensorRepeat("", toucher, AGENT, 20, TWO_PI, .1);
                llSetText("Current User: "+llKey2Name(toucher), <1,1,1>, 1);
                in_use = TRUE;
            }
            else
            {
                in_use = FALSE;
                llSetText("", <1,3,1>, 1);
            }
        }
        control(key name, integer levels, integer edges) 
        {
            if ((levels & CONTROL_ML_LBUTTON) == CONTROL_ML_LBUTTON) 
            {
                fire();
            }
        }
        
    }

     

  7. if (llDetectedView(0) != llGetOwner()) {
    integer x;
    for(x=0;llGetViewerTotal() > x;++x) {
    if (llListFindList(llGetViewers(),llDetectedView(x)) != -1) {
    llRegionSay(llDetectedView(x),0,"Thank you for Looking.");
    }
    }
    }
    Pricelist
    **500L Per Script F/P
    ***Under 100 Lines 2500L
    ***Over 100 >= 300 Lines 10000L
    **PHP Script 25000L
    **Mysql DB 15000L

    Web Hosting - 2500L per Month
    Shoutcast Hosting/w Webhosting 3000L per Month for 100 Listeners.

  8. Need a scriptor? Weapons? Weapon Systems? Websites?Breedables? Make  yourself float on water while tap dancing?

     

    Yes scripting is that magical in SL, contact Amarock amat for more info

     

    Pricelist
    **500L Per Script F/P
    ***Under 100 Lines 5000L
    ***Over 100 >= 300 Lines 10000L
    **PHP Script 25000L
    **Mysql DB 15000L

    Web Hosting - 1000L per Month
    Shoutcast Hosting/w Webhosting 3000L per Month for 100 Listeners.

×
×
  • Create New...