ELxCODYx17 Posted December 16, 2013 Share Posted December 16, 2013 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 More sharing options...
Xiija Posted December 16, 2013 Share Posted December 16, 2013 sounds griefy? Link to comment Share on other sites More sharing options...
Freya Mokusei Posted December 16, 2013 Share Posted December 16, 2013 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 More sharing options...
Nova Convair Posted December 16, 2013 Share Posted December 16, 2013 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. Link to comment Share on other sites More sharing options...
Freya Mokusei Posted December 16, 2013 Share Posted December 16, 2013 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 More sharing options...
Innula Zenovka Posted December 16, 2013 Share Posted December 16, 2013 If you call llGetPos() from an attachment -- be it a hud or anything else -- it gives you the avatar's position. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now