Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

move to target buging out

CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
12-17-2005 22:13
ok i was doing a boat tour thing on a sim and used scripts to make it physicly move from 1 becon to an other
and it was way under the mass limit and worked fine yesterday and today it bugs out the boat falls into the water and just craps out

duno wats wrong can any1 help if u nee dil paste the script
Lisa Trudeau
Registered User
Join date: 22 Aug 2005
Posts: 29
12-18-2005 13:41
hard to diagnose script problems without seeing the script, post it and i'll see what i can do =)
CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
12-18-2005 15:43
vector firstbeacon=<31.43279, 67.92267, 20.200>;
vector nexbecon;
float time;

integer on=0;
integer listening=1;

default
{
state_entry()
{
llListen(0,"","","cruise";);
llListen(10,"","","";);
llListen(110,"end becon","","end";);
llSetStatus(STATUS_ROTATE_Z, FALSE);
llSetStatus(STATUS_ROTATE_X, FALSE);
llSetStatus(STATUS_ROTATE_Y, TRUE);
llSetStatus(STATUS_PHYSICS, FALSE);
llSetBuoyancy(1.0);
llStopLookAt();
}
on_rez(integer param)
{
llResetScript();
}
listen (integer channel, string name, key id, string msg)
{
if(listening==0)return;
if(channel==0)
{
on=1;
llSetStatus(STATUS_ROTATE_Z, FALSE);
llSetStatus(STATUS_ROTATE_X, FALSE);
llSetStatus(STATUS_ROTATE_Y, TRUE);
llSetStatus(STATUS_PHYSICS, TRUE);
llSetBuoyancy(1.0);
llWhisper(0,"starting cruise all abord";);
llMoveToTarget(firstbeacon,2);
//llLookAt(nexbecon,0.6,1);
llSetTimerEvent(1);
listening=0;
}
else if(channel==10)
{
time=(float)llGetSubString(msg,0,4);
nexbecon=(vector)llGetSubString(msg,6,llStringLength(msg));
llMoveToTarget(nexbecon,time);
llLookAt(nexbecon,0.6,1);
listening=0;
llSetTimerEvent(1);
}
else
{
on=0;
llStopLookAt();
llSetStatus(STATUS_PHYSICS, FALSE);
llWhisper(0,"cruise over pls disembark";);
llResetScript();
}
}
timer()
{
llSetBuoyancy(1.0);
listening=1;
llMoveToTarget(nexbecon,time);
llSetTimerEvent(0);
}
}
CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
12-18-2005 15:44
thing is it worked fine the other day and now it just sinks...
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
12-18-2005 16:19
--cringes upon seeing the llListen(0...)--

Just a friendly word...please NEVER...EVER...make a script listen on the public chat channel :) Private channels work just as well and with MUCH less lag-causing consequence.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
12-18-2005 17:59
not if u want the public use it
duh
and thats just a test