welp,lemme show you my problem
following is the code,with the problem highlighted in bold,and a screenshot showing what that does.this bed is two linked hemispheares
// Dhyana Writer 2009integer broadcast = 20;// Left Side Sleeping Position//vector target = <-1.06585, 0.71774, 0.18293>;//rotation targetRot = <0.50028, -0.49972, -0.50028, 0.49972>;// A More relaxed sleeping positionvector target = <-0.900, 0.36328, -0.23000>;rotation targetRot = <0.00001, -0.53456, -0.06875, 0.51038>;integer debugRotation = FALSE;key sitAgent = NULL_KEY;integer gotPermission = FALSE;integer time = 0;default{ state_entry() { llSetSitText( "Sleep" ); llSitTarget( target, targetRot ); if ( debugRotation ) { llListen( 1977, "Rotation Broadcaster", NULL_KEY, "" ); llListen( 1978, "Rotation Broadcaster", NULL_KEY, "" ); } } listen(integer channel, string name, key id, string message ) { if ( channel == 1977 ) targetRot = (rotation) message; else target = (vector) message; llSitTarget( target, targetRot ); if ( time == 0 ) llSay(0, (string) targetRot + ", " + (string)target ); time = (time +1) % 50; } changed(integer change) { if (change & CHANGED_LINK) { key agent = llAvatarOnSitTarget(); if ( sitAgent == NULL_KEY && agent != NULL_KEY ) { // Someone new sitting down sitAgent = agent; llRequestPermissions(sitAgent,PERMISSION_TRIGGER_ANIMATION); } else if ( sitAgent != NULL_KEY && agent == NULL_KEY) { // sitting down person got up - wake up if ( gotPermission ) llStopAnimation("sleep"); // Reset the script because we don't have a way of releasing permissions llResetScript(); } } } run_time_permissions(integer parm) { if(parm == PERMISSION_TRIGGER_ANIMATION) { gotPermission = TRUE; llStartAnimation("sleep pose 6"); } } }