View Single Post
  #2  
Old 09-15-2004, 11:13 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You can setup callbacks for when actions are beginning and ending. So in this case setup a callback for when an actions starts then perform whatever action you need. Here's some sample code:
Code:
def beginaction(avatar,action,type):
	if avatar == male and action == word:
		print 'The male has started speaking'

viz.callback(viz.AVATAR_BEGIN_EVENT,beginaction)
Reply With Quote