Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

sensor event working strange

LostInKgp Kanik
Registered User
Join date: 23 May 2008
Posts: 10
06-24-2008 01:23
is there some kind of issue in llsensor .
i am using it to sense the position of the avatar and move to a position relative to that.
but even when my avatar is fixed, the objects keep on moving slowly maybe trying to get out of the range in which it senses. is that so, how can i make it stable ??
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
06-24-2008 07:29
You're not saying how you're moving your object, be it physical or not, but if you're using llMoveToTarget(), when then at_target event is triggered, you can set it to non physical ( llSetStatus (STATUS_PHYSICS, FALSE); ), that will 'lock' the object into place and eliminate any drifting due to calculations or wind or whatever.


http://www.secondscripter.com
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
06-24-2008 11:37
you'll have to post code

are you using llSetPos, warpPos, moveToTarget?

Are you using sensor repeat, or repeated sensor calls from within the sensor and no_sensor?

Are you using a timer and doing a sensor from the timer?

Are you moving every time you sense?

What parameters for tau to movetotarget if physical?

Are you in a laggy sim?

On a hill?

Did you set bouyancy on your object or is it fighting gravity?

Is it massive and possibly struggling to move?

Is it part of a large linkset, or a single prim?

Is it the root prim?

Are there obstructions, transparent or otherwise? Shields perhaps?