Look at http://opensimulator.org/mantis/view.php?id=5947
May be it is on the same idea ; if so, add comment to the Mantis
GCI
----- Original Message -----
From: R.Gunther
Sent: Thursday, March 29, 2012 1:40 PM
Subject: [Opensim-dev] MoveToTarget broken ?
I start to work again with phyical objects. But many things that worked
before,
Dont work pretty good anymore. or seems to stop working at all.
In this case, the following script seems to fail in some way with the march
version of
osgrid opensim version. I have tried the same script in 0.7.3RC2 local
stanbdalone and there it still works.
Also my own verhicle works not good anymore , for some reason the event
"at_target(" dont get triggered anymore.
this script i tried in my sandbox. sandbox palza 1 & 2 and OKC sandbox. it
dont work.
default
{
state_entry()
{
vector pos = llGetPos();
llSetStatus(STATUS_PHYSICS, TRUE);
// Little pause to allow server to make potentially large linked object
physical.
llSleep(0.1);
llMoveToTarget(pos,0.4);
// Look for owner within 20 meters in 360 degree arc every 1 seconds.
llSensorRepeat("", llGetOwner(), AGENT, 20.0, PI,1.0);
}
sensor(integer total_number)
{
// Get position of detected owner
vector pos = llDetectedPos(0);
// Offset back one metre in X and up one metre in Z based on world
coordinates.
vector offset =<-1,0,1>;
// offset = offset*llDetectedRot(0); //Adding this line will orient the
follower relative to the owner's position.
pos+=offset;
llMoveToTarget(pos,0.4);
}
}
------------------------------------------------------------------------------
_______________________________________________
Opensim-dev mailing list
Opensim-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev
_______________________________________________
Opensim-dev mailing list
Opensim-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev