llStopLookAt
Revision as of 13:49, 14 June 2011 by Trane210 Kozlov (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llStopLookAt( );106 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Stop causing object to point at a target
Use in conjunction llLookAt or llRotLookAt.
Caveats
Examples
<lsl> default {
state_entry() { llSensorRepeat("", "", AGENT, 20.0, PI, 0.2); //Detects avatars } sensor(integer total_number) { llLookAt( llDetectedPos(0) + <0.0, 0.0, 1.0>, 3.0, 1.0 ); //Looks at the nearest avatar. } touch_start(integer total_number) { llStopLookAt(); llSensorRemove(); //Stops looking at any avatar and removes the sensor. }
}
</lsl>