Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

None Phis follow script?

danny2324 Fish
Registered User
Join date: 31 Jan 2006
Posts: 2
04-11-2006 02:56
Can someone help me make a non phis follow script for a trap please? so far i have nuthing without it giveing me an error...Im hopeless...can someone please help?
Dagmar Strauss
Registered User
Join date: 21 Dec 2005
Posts: 17
04-13-2006 15:11
In simplest terms, all you need is a sensor repeat call:

llSensorRepeat("",your_target,AGENT,96,PI,0.02);

and in the sensor event, put llSetPos(llDetectedPos(0)).

I mean, you can do some fiddly math multiplying the detected pos by the detected vel (and possibly by the sensor rate) to get a little smoother follow, but basically all you need is the sensor repeat and the setpos.

It's actually a pretty simple task to make a non-physical item follow someone around. I can't really see how such a script could really fail, let alone give errors. Maybe if you posted your script, we could help you fix it?
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
04-13-2006 15:23
I have loads but I'm a bit suspicious of the nature of this "trap".
Exile Loudon
Aspiring Scripter
Join date: 10 Dec 2005
Posts: 122
04-14-2006 04:01
I believe he wants his trap to follow the user..