Jump to content

Search the Community

Showing results for tags 'water floating hover'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Important News
    • Announcements
  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Second Life Education and Nonprofits
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests, Events & Challenges
    • Challenges
    • Contests
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • Experience Tools Forum
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
    • Mobile
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Linden Homes
    • Wanted
    • Regions for Sale
    • Regions for Rent
  • International Forum
    • Deutsches Forum
    • Foro en español
    • Forum in italiano
    • Forum français
    • 日本語フォーラム
    • 한국어 포럼
    • Fórum em português
    • Forum polskie
    • المنتدى العربي
    • Türkçe Forum
    • Форум по-русски
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers

Blogs

  • Commerce
  • Featured News
  • Inworld
  • Tools and Technology
  • Tips and Tricks
  • Land
  • Community News

Categories

  • English
  • Deutsch
  • Français
  • Español
  • Português
  • 日本語
  • Italiano
  • Pусский
  • Türkçe

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title

Found 1 result

  1. Hi All, I have three questions (1) I decided to try making my own floatie, something similar to the purple inner tube, but my own build. I used the To0b script that came with the freebie as a starting place. For the most part it works. However I am sinking about 5 inches deeper into the water than I should be and it looks like i'm drowning lol. The object turns physical when sat on. I've tried several things including changing physical property type, hover height, boyancy, and gravity (which sent me flying into the air haha). Anyway, I cant seem to what parameter needs changing to make me float just a little bit higher in the water. (2) 2nd problem...any time I change a parameter in the script while its on water, the object becomes dead...unfloatable, as if the script died. I tried resetting script and setting script to running (just in case), but once it's dead that's the end of it. Any suggestions here as well? (3) Am trying to add a collision sound when it bumps into things. Tried using CollsionSound("MySound,1.0); but it only sounded when jumping off the object, and not when it bumped into something. Any help is greatly appreciated. Here is the script: ================== // by Ben // Some help from Casval and Dave rotation rot; key owner; reset() { vector pos = llGetPos(); pos.z = pos.z + 2.0; llMoveToTarget(pos, 0.3); llRotLookAt(rot, 0.1, 1.0); llSleep(1.0); llStopLookAt(); llStopMoveToTarget(); } default { state_entry() { llSetSoundQueueing(FALSE); llPassCollisions(TRUE); llSetSitText("Ride"); llSitTarget(<-0.37, 0.00, -0.01>, <0.00000, -0.25882, 0.00000, 0.47>); // <bkwd/fwd , left/right , up/down> , <rotation, rotation, rotation> llSetCameraEyeOffset(<-4.0, 0.0, 5.00>); llSetCameraAtOffset(<0.0, 0.0, 1.0>); llSetVehicleType(VEHICLE_TYPE_CAR); llRemoveVehicleFlags(-1); llSetVehicleFlags(VEHICLE_FLAG_HOVER_WATER_ONLY | VEHICLE_FLAG_HOVER_UP_ONLY | VEHICLE_FLAG_NO_DEFLECTION_UP); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.2); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.2); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 1.0); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 1000.0); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 1.0); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 0.1); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.1); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.1); llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <10, 10, 10.0>); llSetVehicleVectorParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, <10.0, 10.0, 10>); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.2); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.5); llSetVehicleFloatParam(VEHICLE_BUOYANCY, 0); llSetVehicleFloatParam(VEHICLE_HOVER_HEIGHT, 0.1); llSetVehicleFloatParam(VEHICLE_HOVER_EFFICIENCY, 0.5); llSetVehicleFloatParam(VEHICLE_HOVER_TIMESCALE, 0.1); llSetVehicleFloatParam(VEHICLE_BANKING_EFFICIENCY, 0.1); llSetVehicleFloatParam(VEHICLE_BANKING_TIMESCALE, 0.01); llSetVehicleFloatParam(VEHICLE_BANKING_MIX, 1.0); //llCollisionSound("", 0.0); } on_rez(integer param) { // if(owner != llGetOwner()) // { // owner = llGetOwner(); //llGiveInventory(agent, "Innertube Instructions"); //} } changed(integer change) { if (change & CHANGED_LINK) { key agent = llAvatarOnSitTarget(); //llGiveInventory(agent, "Tubing Gnoma"); if (agent) { //if (agent != llGetOwner()) //{ // llSay(0, "You aren't the owner"); // llUnSit(agent); // llPushObject(agent, <0,0,100>, ZERO_VECTOR, FALSE); //} // else // { llSetStatus(STATUS_PHYSICS, TRUE); llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION | PERMISSION_TAKE_CONTROLS); llMessageLinked(LINK_SET, 0, "on", ""); llSetTimerEvent(1.0); //} } else { llSetStatus(STATUS_PHYSICS, FALSE); llReleaseControls(); //llStopAnimation("crouch"); llMessageLinked(LINK_SET, 0, "off", ""); llSetTimerEvent(0.0); llStopSound(); } } } run_time_permissions(integer perm) { if (perm) { //llStopAnimation("sit"); //llStartAnimation("crouch"); llTakeControls(CONTROL_FWD | CONTROL_BACK | CONTROL_RIGHT | CONTROL_LEFT | CONTROL_ROT_RIGHT | CONTROL_ROT_LEFT | CONTROL_UP | CONTROL_DOWN, TRUE, FALSE); } } control(key id, integer level, integer edge) { vector angular_motor; if(level & CONTROL_FWD) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <4, 0, 0>); llStartAnimation("falldown"); } if(level & CONTROL_BACK) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <-4,0,0>); llStartAnimation("falldown"); } if(level & (CONTROL_RIGHT|CONTROL_ROT_RIGHT)) { angular_motor.z = -PI * 0.25; llStartAnimation("falldown"); } if(level & (CONTROL_LEFT|CONTROL_ROT_LEFT)) { angular_motor.z = PI * 0.25; llStartAnimation("falldown"); } if(level & (CONTROL_DOWN)) { //reset(); } else if(level == FALSE) { llStopAnimation("falldown"); } llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, angular_motor); } timer() { vector pos = llGetPos(); if(( pos.z - llGround(ZERO_VECTOR) ) < 0.8) { rot = llGetRot(); } } } ================== Thank you. Raena Parx
×
×
  • Create New...