Difference between revisions of "LlStopLookAt"

From Second Life Wiki
Jump to navigation Jump to search
m (grammar)
m
Line 8: Line 8:
|caveats
|caveats
|constants
|constants
|examples
|examples=<lsl>
default
{
    state_entry()
    {
        llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
    }
    sensor(integer total_number)
    {
        llLookAt( llDetectedPos(0) + <0.0, 0.0, 1.0>, 3.0, 1.0 );
    }
    touch_start(integer total_number)
    {
        llStopLookAt();
        llSensorRemove();
    }
}
</lsl>
|helpers
|helpers
|also_functions=*{{LSLG|llLookAt}}
|also_functions=*{{LSLG|llLookAt}}

Revision as of 13:48, 14 June 2011

Summary

Function: llStopLookAt( );

Stop causing object to point at a target

Use in conjunction llLookAt or llRotLookAt.

Examples

<lsl> default {

   state_entry()
   {
       llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
   }

   sensor(integer total_number)
   {
       llLookAt( llDetectedPos(0) + <0.0, 0.0, 1.0>, 3.0, 1.0 );
   }

   touch_start(integer total_number)
   {
       llStopLookAt();
       llSensorRemove();
   }

}

</lsl>

See Also

Functions

Deep Notes

Search JIRA for related Issues

Signature

function void llStopLookAt();