public void llPatrolPoints(LSL_List patrolPoints, LSL_List options)
{
List<Vector3> positions = new List<Vector3>();
List<TravelMode> travelMode = new List<TravelMode>();
foreach (object pos in patrolPoints.Data)
{
if (!(pos is LSL_Vector))
continue;
LSL_Vector p = (LSL_Vector)pos;
positions.Add(p.ToVector3());
travelMode.Add(TravelMode.Walk);
}
IBotManager botManager = World.RequestModuleInterface<IBotManager>();
if (botManager != null)
botManager.SetBotMap(m_host.ParentEntity.UUID, positions, travelMode, 1, m_host.ParentEntity.OwnerID);
}