Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Floating Air bed

Tarek Nikolaidis
Registered User
Join date: 6 Apr 2007
Posts: 35
03-08-2008 02:07
Hi peeps

My knowledge in scripting is absolutely 0 ( only thing i know is i can copy paste them in things to make them do stuff).
I have a small pool and i wan to have some floating air beds in the pool.
I found a script that makes the object sty in place yet bob up and down, which is cool, but i need somethign that will make the air bed randomly float around the pool. This airbed will have a sit script with a pose in it...is this possible at all? does anyone know where i can find this script? if necessary i will pay for it, if the price i reasonable, very very reasonable
thanks a lot
have a great day/night
Tarek
Tazmania Trefusis
Registered User
Join date: 13 Jan 2008
Posts: 85
Mmm maybe animal script??
03-08-2008 10:37
The scripts they use for these NPC wandering animals might be of some use
As far as I know, there given a set border/boundary so that would be your pool.

Im sure, if you do find a 'public domain' one or a freebie..you could change some parameters to make it suit something like an airbed..obviously you dont want it bobbing up and down in water, quacking and wanting feeding lol

If your really lucky, you may find a heavy commented script!!

Just an idea!
Tarek Nikolaidis
Registered User
Join date: 6 Apr 2007
Posts: 35
03-08-2008 14:00
Awesome, THanks for your reply Taz, i will check it out....still laughing picturing my striped bright colored air bed asking for food and quacking!! funny thing is, in SL its possible!!! lol
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
03-08-2008 15:23
You could also try looking through Apotheus Silverman's swarm script. He's got some code in there that will limit the movement of the swarm members relative to their rez point

/54/0c/9803/1.html

specifically the section

From: Apotheus Silverman


// Stay near spawn location
if (llVecDist(mypos, spawn_location) > max_distance) {
// Compensate for being near sim border
if (spawn_location.x - mypos.x > 100) {
mypos.x += 255;
}
//llSay(0, "collide() called due to too much distance from my spawn point. mypos=" + (string)mypos + ", spawn_location = " + (string)spawn_location);
collide(mypos - llVecNorm(spawn_location - mypos));
}

// Stay above ground level
if (mypos.z <= llGround(ZERO_VECTOR)) {
collide(mypos - llGroundNormal(ZERO_VECTOR));
}
}

_____________________
Tread softly upon the Earth for you walk on my face.