Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

hovering up and down script?

Slade Onizuka
Registered User
Join date: 26 May 2004
Posts: 15
11-10-2004 08:20
Is there a way to make an object sort of hover up and down when an av sits on it? i wanted to also see how soundloop and touch sound worked...im still really confused about script. i mean, i can mod one if i need to, i just dont know what a script should look like to make it work properly.... im sure that after i see enough various examples it will become somewhat clearer, but for now... im still kind of lost...
thanks
slade :confused:
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
11-11-2004 01:32
The physics engine doesn't appear to support sub-critical damping, so a proper "bob" effect is quite difficult to do.
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
11-11-2004 11:00
I've got a script somewhere that does it. If I remember next time I'm in world, I'll look for it. Or better yet, IM me. :)
_____________________
~ Tiger Crossing
~ (Nonsanity)
Water Rogers
Registered User
Join date: 1 May 2003
Posts: 286
11-11-2004 20:07
Try this:

llSetVehicleFloatParam(VEHICLE_HOVER_HEIGHT, (Hover Height) - (dampening, like 0.15));
llSetVehicleFloatParam(VEHICLE_HOVER_HEIGHT, (Hover Height));

--Water
_____________________
From: Philip Linden

For the more technically minded - the problem is actually NOT the asset server (or 'asshat' as you prefer to affectionately call it herein).