vr_boyko
10-05-2004, 04:12 PM
Hi there,
If I have an agent who is currently performing some type of idling behavior/animation, but I want it to speak on command, how do I do so?
I read about the 'execute' command in VizHelp, that states: "Perform animation 2 once while animation 1 is going" However, I think something about the speak command is incompatible with execute, because I get an 'AttributeError: Action instance has no attribute '__int__''.
If I do write something like:
agent.idle(16) #where 16 is the idling animation
speech = agent.speak(---, ---, ---)
agent.act(speech)
Then the program has to wait until the idling behavior is done until the avatar can speak.
Thanks for your help!
If I have an agent who is currently performing some type of idling behavior/animation, but I want it to speak on command, how do I do so?
I read about the 'execute' command in VizHelp, that states: "Perform animation 2 once while animation 1 is going" However, I think something about the speak command is incompatible with execute, because I get an 'AttributeError: Action instance has no attribute '__int__''.
If I do write something like:
agent.idle(16) #where 16 is the idling animation
speech = agent.speak(---, ---, ---)
agent.act(speech)
Then the program has to wait until the idling behavior is done until the avatar can speak.
Thanks for your help!