Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need help with a sea plane script

MCM McMinnar
Registered User
Join date: 23 Oct 2008
Posts: 2
10-23-2008 21:17
Ok heres the issue, I was trying to make a float plane for a friend and when I try to get to float on the water with the code below it bounces off the water and I cannot figure out what I am doing wrong to make it float like a sea plane :(.
Any help would be apprecated
CODE

vector mpos = llGetPos();
float sea = llWater(ZERO_VECTOR) + 2.5;
if(mpos.z > sea)
{
llSetVehicleFloatParam( VEHICLE_HOVER_HEIGHT, 0 );
llSetVehicleFloatParam( VEHICLE_HOVER_EFFICIENCY, 0 );
llSetVehicleFloatParam( VEHICLE_HOVER_TIMESCALE, 10 );
llSetVehicleFloatParam( VEHICLE_BUOYANCY, .977 );
}
if(mpos.z < sea)
{
llSetVehicleFloatParam(VEHICLE_HOVER_HEIGHT, llWater(ZERO_VECTOR));
llSetVehicleFloatParam(VEHICLE_HOVER_EFFICIENCY, .5);
llSetVehicleFloatParam(VEHICLE_HOVER_TIMESCALE, .1);
llSetVehicleFloatParam(VEHICLE_BUOYANCY, 1);
}
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
10-26-2008 09:18
Try increasing the hover efficiency.
_____________________
Life is a highway... And I just missed my exit.