WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-17-2012, 10:45 AM
kovitch kovitch is offline
Member
 
Join Date: Sep 2010
Posts: 30
WaitMouseDown or WaitTime

Hi,

If I use:
Code:
yield viztask.waitTime(10)
yield viztask.waitMouseUp(viz.MOUSEBUTTON_LEFT)
the application will wait 10 seconds and then it will expect a left mouse click to continue. It's sequencial.

How can I do something like:
Code:
if time_is_up or mouse_clicked:
    do_stuff()
using viztask?

Best regards,

Alex.
Reply With Quote
  #2  
Old 05-17-2012, 10:52 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Have a look at the viztask.waitAny command in the documentation. It should do exactly what you want.
Reply With Quote
  #3  
Old 05-17-2012, 10:53 AM
kovitch kovitch is offline
Member
 
Join Date: Sep 2010
Posts: 30
You're right, it does! Thanks.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Randomly Choosing a WaitTime new_horizon Vizard 1 06-29-2011 04:04 PM
waittime cade_mccall Vizard 4 04-29-2005 03:39 PM


All times are GMT -7. The time now is 09:49 AM.


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