Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Why is my script only increasing its Z axis by 10m?

Ginge Reymont
Registered User
Join date: 10 Oct 2005
Posts: 190
10-15-2005 05:03
CODE

key alt;
string target_alt;

default
{
state_entry()
{
llListen(1,"",llGetOwner(),"");
}
listen(integer channel, string name, key id, string message) {
if (llGetSubString(message, 0, 3) == "/alt") {
target_alt = llToLower(llGetSubString(message,5,-1));
llSay(0,"Altitude " + target_alt + " Meters");
}
if (message == "build")
{
llSetPos(llGetPos() + <0.0,0.0,(float)target_alt> );
llOwnerSay("Done!");
}
}
}
Alex Edo
Insert Brain Here...
Join date: 27 Feb 2005
Posts: 108
10-15-2005 05:08
llSetPos Has a 10m range. Use a "while"