Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
|
08-30-2005 00:18
Can someone please show me an example script to make an object rez and then move itself to a pos in front of the user and face him no matter which dir he is facing?
Can do part but it wont position itself in front of the avatar no matter which way it is facing.
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
08-30-2005 00:27
"In front of the user" is about 1 meter in the forward direction of the user, from the user's position. Translated into LSL: vector front_of_user = <1,0,0> * llDetectedRot(0) + llDetectedPos(0);
This code is to be put in a sensor event looking for the user 
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|