Jump to content

how do i make an object i rezz follow a certain avatar


jacky Ogura
 Share

You are about to reply to a thread that has been inactive for 2742 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts


jacky Ogura wrote:

i dont think  llTarget("name") would work 

Right, and Rolig's example doesn't use it. Also notice her hint "very slightly".

In the example, a sensor continuously locates the object owner, stores the position in "pos" and then passes that position to llMoveToTarget(). The sensor is opened looking for the owner's key. It doesn't care about name, as indicated by "" in the name argument slot of the llSensorRepeat() function. You want to sense an avatar by name, and you don't care what their key is. So you'd pass their name to llSensorRepeat and leave the key field blank. Look at the wiki page for llSensorRepeat for hints...

http://wiki.secondlife.com/wiki/LlSensorRepeat

Once you've set up llSensorRepeat to find the desired avatar, it'll return their position, which the script will pass to llMoveToTarget.

So, as Rolig says, the change is very slight.

;-).

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2742 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...