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