Skip to content
lsl.devlsl.devLSL Dev

at_rot_target

event
Event syntax
at_rot_target(
  1. integer handle,// Integer handle returned by the llRotTarget call.
  2. rotation targetrot,// Target rotation specified in the llRotTarget call.
  3. rotation ourrot// Current rotation of the object (similar to llGetRot).
) { … }

Triggered when the script's rotation (ourrot) comes within a defined angle (error) of the target rotation (targetrot) set by a call to llRotTarget (which returns the associated handle).

Result of llRotTarget library function call

How to use
at_rot_target(integer handle, rotation targetrot, rotation ourrot)
{
}

For an example, see llRotTarget

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from At rot target, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.