Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Roaming Fish

TBear Bailey
Registered User
Join date: 9 Feb 2007
Posts: 1
02-27-2008 09:52
I'm new at scripting and I want to make a fish that roams randomly to different points within a 10 meters range. I also want the fish to have a sensor so when it detects a specific object (like bait), the fish will swim toward the bait. When the two (fish and bait) collides, then the fish will jump out of the water and the avatar can click on the fish to catch the fish.

So far I have made a bait object that the avatar can move around using the control keys. I also don't know what to put in bait object for the fish to sensor for. I've tried to read other forums to get ideas for random movement but I can't figure it out.

Any pointers on scripts to use would help so much.
Thanks
Felowen Dodge
Registered User
Join date: 14 Aug 2006
Posts: 200
02-27-2008 10:25
Hi there. You may want to do some searching and reading on a script called "swarm"
It can be found here /54/0c/9803/1.html

That should give you a starting place to do what you are looking to do.