fixing the sample_object_creation script wrt to agent.Position, fixed a bug in request_multiple_objects, and modified some logging

This commit is contained in:
enus.linden
2009-03-14 00:09:15 +00:00
committed by Salad Dais
parent 659e2347e4
commit 82a7df8c04
7 changed files with 1004 additions and 190 deletions

View File

@@ -72,6 +72,7 @@ def login():
# let's disable inventory handling for this example
settings = Settings()
settings.ENABLE_INVENTORY_MANAGEMENT = False
settings.OBJECT_TRACKING = False
#First, initialize the agent
client = Agent(settings = settings)
@@ -88,12 +89,12 @@ def login():
# in this case, wait for the client.Position to become populated, as we need to rez a box
# relative to our current position
while client.Position == None:
while client.Position == (0.0, 0.0, 0.0):
api.sleep(0)
# do sample script specific stuff here
client.region.objects.create_default_box()
client.region.objects.create_default_box(GroupID = client.ActiveGroupID)
while client.running:
api.sleep(0)