Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sensor targeting

Floog Stuart
Registered User
Join date: 28 Jun 2006
Posts: 12
09-16-2006 16:37
I'm trying to use a sensor to make a fish i'm working on find and target food. How would I get this to work? Would I need to use a sensor or something else?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-16-2006 16:48
Try looking at this page about a 3rd of the way down is an Example script for a robot. But actually I just dumped it in a box and it worked fine. It does a sweep of the area and goes to nearest object then the next one etc feeding.

http://rpgstats.com/wiki/index.php?title=TutorialRobotics

You should be able to see what you need to do there