Sets the object patrolling between the points specified in patrolPoints.
void llPatrolPoints( list patrolPoints, list options );
| Option | V | Parameters | Default | Description |
|---|---|---|---|---|
| [ PATROL_PAUSE_AT_WAYPOINTS ] | 0 | [ integer boolean ] | [ FALSE ] | Whether the character should pause briefly after reaching each patrol point. |
default
{
state_entry()
{
llCreateCharacter([CHARACTER_MAX_SPEED, 25, CHARACTER_DESIRED_SPEED, 15.0]);
//MAX_SPEED is @ 20 by default
}
touch_start(integer total_number)
{
list points = [llGetPos() + <5,0,0>, llGetPos() - <5,0,0>];
llPatrolPoints(points, [PATROL_PAUSE_AT_WAYPOINTS, TRUE]);
}
}
Date of Release 31/07/2012