Open Source Platform
for interconnected virtual worlds

Content Scripting Python Bots

From RexWiki

Defining bots

See Setting up bots

Controlling bots from Python script

Bots can be controlled from Python script. Basic functions are available for controlling the bot:

def IsHuman(self):
def IsBot(self):

Used to check if an avatar is a bot.

def WalkTo(self,vDest):
def FlyTo(self,vDest):
def RotateTo(self,vDest):

Move/rotate the bot to the specified destination.

def PauseAutoMove(self,vEnable):
def StopAutoMove(self,vEnable):

If bot is set to follow a path in the bots configuration file (see Setting up bots) the bot can made to pause or stop following the path. When paused, the bot will still teleport to the next node in the path after timeout period has passed. When stopped, the bot will stay put and surrender complete control to the script.