Jump to content

Push nodes?


ELxCODYx17
 Share

Recommended Posts

Im wanting to make a push effect and i wanna make a script where it will count how many avatars are in a 7 meter radius and it will rez a number of prims equal to how many avatars there are in the area and each prim will follow each avatar.. I don't know how to start it... script examples would be nice. Thank you.

Link to comment
Share on other sites

Hi ELxCODY,

You'll be wanting to take a look at a few of the following LSL functions (most of these pages have simple examples):-

SL Wiki: llRezObject (for rezzing objects)

SL Wiki: llSensor (for detecting avatars within a circular zone)

There are a few methods for following behaviour, typically either non-physical (via llSetPos) is the easiest to understand, while physics (my preference here is llMoveToTarget) is a little more crazy.

SL Wiki: llSetPos (non-physical movement)

SL Wiki: llMoveToTarget (physical movement to a point)

SL Wiki: llApplyImpulse (physical movement requiring energy/thrust).

Note that you'll need to rez the follower-objects from either an attachment or rezzed object, a HUD won't work.

Good luck!

Link to comment
Share on other sites


Nova Convair wrote:


Freya Mokusei wrote:

...

Note that you'll need to rez the follower-objects from either an attachment or rezzed object, a HUD won't work.


A HUD will work too.

Oh? Clever! Presumably it registers rez position at agent root?

...Wait. I knew this, duh, I have a HUD that rezzes.

MORE COFFEE NEEDED. Thanks Nova!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...