player_chat()-function
def player_chat(message):
agent.teleport()
Can't get this code to work outside off the "Agent Moves" tutorial. It seems to me like the player_chat function dosn't work in a "New Project" - notebook. Is there a work around to collect input from chat in a notebook-script?
0
-
Martine Husøy it appears that you need to set the parameters for the agent to teleport and what the chat message will be that is received.
0 -
I am in the same trouble. Agent say nothing with following code.
def player_chat(message):
agent.say("bye")0
Please sign in to leave a comment.
Comments
2 comments