Sets the object patrolling between the points specified in patrolPoints.

Syntax

void llPatrolPoints( list patrolPoints, list options );

Parameters

list patrolPoints
A list of vectors for the character to travel through sequentially. The list must contain at least two entries.
list options (instructions)
PATROL_* flags and their parameters

Constants

OptionVParametersDefaultDescription
[ PATROL_PAUSE_AT_WAYPOINTS ]0[ integer boolean ][ FALSE ]Whether the character should pause briefly after reaching each patrol point.

Caveats

Examples

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]);
    }
}		

See also

Events

Functions

Deep notes

History

Date of Release 31/07/2012