WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 09-15-2004, 12:04 PM
vjonshih vjonshih is offline
Join Date: Sep 2004
Posts: 15
Advanced/"Conditional" avatar animations

Hi there,

I was wondering -- if I, for example, have two avatars (say a man and a woman) in my world -- and I have this queue of actions for one avatar to perform (the man):

turn_left = male.turn(270)
word = male.speak('sound.wav', .5)
turn_right = male.turn(180)

How would I insert a 'conditional' action that makes the other avatar (the woman) fall down (i.e. action 7) right as the man starts speaking?

Thanks in advance for your help.
Reply With Quote
Old 09-15-2004, 12:13 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

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:
def beginaction(avatar,action,type):
	if avatar == male and action == word:
		print 'The male has started speaking'

Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 08:10 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC