Difference between revisions of "Follower script"
Jump to navigation
Jump to search
m |
Placid Kidd (talk | contribs) m (remove entirely incorrect description of llMoveToTarget parameters) |
||
Line 1: | Line 1: | ||
This script was extracted from the Batman Follower v1.2, but the following distance was changed from .3 m to .1 m. | This script was extracted from the Batman Follower v1.2, but the following distance was changed from .3 m to .1 m. | ||
<pre> | <pre> |
Revision as of 18:17, 5 July 2007
This script was extracted from the Batman Follower v1.2, but the following distance was changed from .3 m to .1 m.
default { state_entry() { vector pos = llGetPos(); llSetStatus(STATUS_PHYSICS, TRUE); llSleep(0.1); llMoveToTarget(pos,0.1); key id = llGetOwner(); llSensorRepeat("", id, AGENT, 96.0, PI, 0.4); } sensor(integer total_number) { vector pos = llDetectedPos(0); vector offset =<-1,0,1>; pos+=offset; llMoveToTarget(pos,0.0); } }