Skip to content

at_rot_target

LLEvents:on("at_rot_target", function(TargetNumber: number, TargetRotation: quaternion, CurrentRotation: quaternion)
-- ...
end)

This event is triggered when a script comes within a defined angle of a target rotation. The range and rotation are set by a call to llRotTarget.

Parameters
TargetNumber(number)
TargetRotation(quaternion)
CurrentRotation(quaternion)

Add example usage here showing how to handle the at_rot_target event in SLua/Luau.

Add additional notes, caveats, or tips specific to using this event in SLua/Luau.