public llNavigateTo ( Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 point, Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.list options ) : void | ||
point | Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 | |
options | Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.list | |
return | void |
public void llNavigateTo(LSL_Vector point, LSL_List options)
{
List<Vector3> positions = new List<Vector3>() { point.ToVector3() };
List<TravelMode> travelMode = new List<TravelMode>() { TravelMode.Walk };
IBotManager botManager = World.RequestModuleInterface<IBotManager>();
int flags = 0;
if (options.Length > 0)
flags |= options.GetLSLIntegerItem(0);
if (botManager != null)
botManager.SetBotMap(m_host.ParentEntity.UUID, positions, travelMode, flags, m_host.ParentEntity.OwnerID);
}