Sure, just yield the mouse down condition multiple time. For example:
Code:
def BallFlight():
#Wait for left mouse button to be pressed twice
yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT)
yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT)
If the number of mouse click is some variable amount, then you can use the following code:
Code:
NUM_CLICKS = 2
def BallFlight():
#Wait for left mouse button to be pressed twice
for x in range(NUM_CLICKS):
yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT)