|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
|LSL Feature Request|
|The described function does not exist. This article is a feature request.|
position_to_point_at = [get position of some object];
my_pos = llGetPos();
direction = position_to_point_at - my_pos;
This should be called from within an attachment and from no other place. Ideally it would throw out the Z component of the direction vector. Since the old llPointAt() function was never enabled in production versions of the server, and can't be enabled by the community until the server code is opened up, I wanted to propose that LL add a function with this prototype. This should be a one-shot function that does not hold the avatar in the specified direction permanently, but works once and once only.
Animations can not duplicate this functionality, as when an animation is complete the avatar returns to its previous position and orientation.
It isn't that it has been deprecated, it just was never enabled. I should probably append that to the function description.
No need, I just added that. It's listed as deprecated in all of the documentation so that's why I originally said so here.
//function void llRotateAgent( vector direction );