View Single Post
  #2  
Old 01-15-2010, 03:11 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could use vizact.onupdate to check every frame if the trigger has occurred and then either do something there or call another function
Code:
def checkTrigger():
	
	trigg = d.eAnalogIn(0)
	if trigg > 0:
		ExtTrigg()
		
vizact.onupdate(0, checkTrigger)
Reply With Quote