View Single Post
  #2  
Old 03-13-2013, 07:36 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,461
Are you doing anything in your while loop other than waiting for time to pass or the waitJoyButton condition? If not, it seems you could replace the while loop with something like:
Code:
yield viztask.waitAny( [ waitJoyButton, viztask.waitTime(10) ] )
Reply With Quote