Jump to content

Sca Shilova

Resident
  • Posts

    19
  • Joined

  • Last visited

Everything posted by Sca Shilova

  1. okay. I tried your first suggestion but I don't know enough about scripting to know where exactly and how to add it, so it didn't work. I still have the original script, so I will try your next suggestion now, thanks
  2. Hi, I've been using to try make a trolly to rezz and push, that can have one seated passenger. The vehicle script in the SL freebie Bus to Nowhere with explanations that has helped. I managed to tweak it to get the animated avatar in the right place, and to slow it down to walking pace. I also took out the engine sounds. For the passenger, I added a prim with an embedded sit pose. Linking everything seems to work. (Also probably good to mention the the freebie bus I mentioned contains another script to deal with region crossings.) Can someone help me adding to the script so that the avatar who pushes the trolly has a different animation when standing still. I already made both animations, and the walking one (or if it were a vehicle, the driver anim) works already. This is the script so far. I'm certain there's a way more elegant way to do it all, but I'm a total dummy at this and trying to learn Thanks! ----------------------------------------------- //Basic Motorcycle Script // // by Cory // commented by Ben //The new vehicle action allows us to make any physical object in Second Life a vehicle. This script is a good example of a // very basic vehicle that is done very well. integer loopsnd = 0; default { //There are several things that we need to do to define vehicle, and how the user interacts with it. It makes sense to // do this right away, in state_entry. state_entry() { //We can change the text in the pie menu to more accurately reflecet the situation. The default text is "Sit" but in // some instances we want you to know you can drive or ride a vehicle by sitting on it. The llSetSitText function will // do this. llSetSitText("Ride me!"); //Since you want this to be ridden, we need to make sure that the avatar "rides" it in a acceptable position // and the camera allows the driver to see what is going on. // //llSitTarget is a new function that lets us define how an avatar will orient itself when sitting. // The vector is the offset that your avatar's center will be from the parent object's center. The // rotation is bassed off the positive x axis of the parent. For this motorcycle, we need you to sit in a way // that looks right with the motorcycle sit animation, so we have your avatar sit slightly offset from the seat. llSitTarget(<-1.43, 0.045, 0.015>, ZERO_ROTATION); llSetCameraEyeOffset(<-9.0, -0.00, 4.0>); llSetCameraAtOffset(<3.0, 0.0, 2.0>); llSetVehicleFlags(-1); llSetVehicleType(VEHICLE_TYPE_CAR); llSetVehicleFlags(VEHICLE_FLAG_NO_FLY_UP | VEHICLE_FLAG_LIMIT_ROLL_ONLY); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.2); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.80); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 0.10); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 0.10); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 0.3); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 0.2); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.3); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.1); llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <1000.0, 2.0, 1000.0>); llSetVehicleVectorParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, <10.0, 10.0, 1000.0>); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.90); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.90); llSetVehicleFloatParam(VEHICLE_BANKING_EFFICIENCY, 0.05); llSetVehicleFloatParam(VEHICLE_BANKING_TIMESCALE, 0.1); } changed(integer change) { if (change & CHANGED_LINK) { key agent = llAvatarOnSitTarget(); if (agent) { if (agent != llGetOwner()) { llSay(0, "Sorryyy but nice try! :D"); llUnSit(agent); llPushObject(agent, <0,0,20>, ZERO_VECTOR, FALSE); } else { llSetStatus(STATUS_PHYSICS, TRUE); llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS ); } } else { llSetStatus(STATUS_PHYSICS, FALSE); llReleaseControls(); llStopAnimation("sit"); } } } run_time_permissions(integer perm) { if (perm) { llStopAnimation("sit"); llStartAnimation("grannyWalkNew3"); llTakeControls(CONTROL_FWD | CONTROL_BACK | CONTROL_RIGHT | CONTROL_LEFT | CONTROL_ROT_RIGHT | CONTROL_ROT_LEFT, TRUE, FALSE); } } control(key id, integer level, integer edge) { vector angular_motor; if (level & edge & CONTROL_FWD) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <2,0,0>); } else if ((edge & CONTROL_FWD) && ((level & CONTROL_FWD) == FALSE)) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0,0,0>); loopsnd = 0; } else if (level & CONTROL_FWD) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <2,0,0>); } if(level & CONTROL_BACK) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <-2,0,0>); } if(level & (CONTROL_RIGHT|CONTROL_ROT_RIGHT)) { angular_motor.x += 100; angular_motor.z -= 100; } if(level & (CONTROL_LEFT|CONTROL_ROT_LEFT)) { angular_motor.x -= 100; angular_motor.z += 100; } if(level & (CONTROL_UP)) { angular_motor.y -= 50; } llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, angular_motor); } }
  3. Hi I mean the volume sliders in preferences, not on the prim. I have the media on prim UI turned off so that you don't see them in the stream. I'm not sure what you mean by "clicked the zoom-in button to ensure max control." I don't see any zoom function in there. If your media volume control in preferences does work then I'd be interested to know whic client you're on and which version. Greets, Sca
  4. Hi :) I need to be able to control volume sliders while streaming media on prim out of SL. The only sounds I need to be able to toggle are media and SL voice chat. The other sounds are off. I'm on windows 7 and tested this on the SL viewer and on firestorm plus someone else tested it for me on adifferent client with the same problem. I did notice that I can fade all SL sound with the SLplugin.exe in my OS sound mixer, but that doesn't separate the SL voice from the media sound. Is this a known problem and is there a fix or work around? Alternatively, is there a viewer in which this slider is known to work? Thanks, Sca
  5. that is my problem - those sliders are not working... I'll edit my post to try and make that clearer thanks
  6. Hi :) I need to be able to control volume sliders in preferences > sound &media while streaming media on prim out of SL. The only sounds I need to be able to toggle are media and SL voice chat. The other sounds are off. I'm on windows 7 and tested this on the SL viewer and on firestorm plus someone else tested it for me on adifferent client with the same problem. I did notice that I can fade all SL sound with the SLplugin.exe in my OS sound mixer, but that doesn't separate the SL voice from the media sound. Is this a known problem and is there a fix or work around? Alternatively, is there a viewer in which this slider is known to work? Thanks, Sca
  7. solved. It's not possible ot overwrite xml files but i managed to save it in another destination and then replace it. Thanks Cerise!
  8. Great thanks For some reason it wont allow me to save it after editing that though. I've checked permissions on the file and can't see why not...
  9. Hi :) Last time I made machinima I was on a desktop and CTRL + ALT + F1 worked fine, but now I'm on a laptop and it's not working. My screen goes black. I've googled and seen that a few other people on laptops also have this problem but no solution to be found so far. I've tried including the FN key, tried CTRL + ALT + SHIFT + F1, tried with an extra monitor and without but so far no luck. I could use the menu to get rid of UI but then I don't have it and still need the shortcut to get back out. Anyone had this problem and know of a solution? Thanks!
  10. after buying a new computer and installing the latest qavimator i ended up wiht this problem again. searched for ages. tried everything. i knew we had found the solution sometime somewhere and FINALLY found it again here So now i've reinstalled the 2008 version and that feature works again. What I don't understand is why they left this feature out of the latest version...?
  11. Hi all, Iknow I really need a desktop for machinima but i'm needing to be mobile so laptop it is. I am prepared to sacrifice some detail, like shadows for example. Can someone please advise me on the minimum specs i would need. So far i'm thinking i can get away with an i5 processor, and 6GB. Do you agree and which nvidia card would i need with that? Thanks! Sca :)
  12. my work around is to create a key frame at 359 and then directly after it at -359 . so in your example 90, 270, and then 2 degrees, would becomes 90, 270, and then 359 followed directly with -359, and 2 deg would become -357 hope that helps
  13. this might seem silly but i've google this for an hour and still no luck. In the previous version i could delete frames with ctrl-x but not in the newer one. it has a scissors but that doesn't work either. i am starting to think it is a bug but hoping someone can enlighten me. Thanks! Sca :)
×
×
  • Create New...