is there a limit on movetotarget ?
heres the call script ,excuse the bad scripting im still learning
[
integer targetID;
default
{
state_entry ()
{llListen(1967, "", "", ""
;}
listen( integer channel, string name, key id, string message )
{
// Become a physical object
llSetStatus(STATUS_PHYSICS, TRUE);
vector destination =(vector) message;
float range = 0.1;
targetID = llTarget( destination, range );
llMoveToTarget( destination, 0.1 );
}
at_target( integer number, vector targetpos, vector ourpos )
{
llTargetRemove(targetID);
llStopMoveToTarget();
llSetStatus(STATUS_PHYSICS, FALSE);
vector here=llGetLocalPos();
// llSay(0,"im here"+(string)llRound (here.z));
integer j;
integer count = 11;
string csv = llGetObjectDesc();
list my_list = llCSV2List(csv);
////////////////////////////////// check level and send to elevator button ///////////////////
for (j = 0; j < count; j++)
{
float end= (llList2Float(my_list,j));
// llSay(0,"ist"+(string)end);
if(llRound (here.z)==llRound (end))
{ llSetObjectName((string)j);llMessageLinked(4, 0, (string) j, NULL_KEY);jump over;}
if(llRound (here.z)==llRound(end)+1)
{ llSetObjectName((string)j);llMessageLinked(4, 0, (string) j, NULL_KEY);jump over;}
if(llRound (here.z)==llRound(end)-1)
{ llSetObjectName((string)j);llMessageLinked(4, 0, (string) j, NULL_KEY);jump over;}
}
@over;
llTriggerSound(llGetObjectName(), 1.0);
}
}
]