WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Timing events (https://forum.worldviz.com/showthread.php?t=1364)

dan12345 02-26-2008 01:20 AM

Timing events
 
Hey
Was wondering what is the best way to execute a sequence of simple events -
to be more specific i want an avatar so use the "speak()" function
after let's say 10 seconds, and then a different speak function 10 seconds
after the first ended, and then another one 60 seconds later, and then walk
someplace a given time later.

I'm a bit confused from the tutorials - i know there is waittime() and director, and also using timers, but haven't figured what best suits the cause.

thanks!

theuberk 02-26-2008 07:03 AM

I'd say using actions would be the best way. Since speak() and walkto() are both actions, you could use the vizact.sequence() method along with vizact.waittime() to create a sequence of actions that would execute when you want them to. You should look up the vizact module in the vizard documentation for more information on actions.


All times are GMT -7. The time now is 06:34 AM.

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