View Single Post
  #2  
Old 07-23-2009, 09:49 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You are referencing the PushedWalkBtn function before you define it. That is why the error says PushedWalkBtn is not defined.

Just place the function definition above the action definition and it should work:
Code:
def PushedWalkBtn():
	stopcollide()
	carPAUSEaction()
	inviscar()

action = vizact.sequence(vizact.call(Pushed.visible,True),vizact.call(PushedWalkBtn))
vizact.onpick( PushBox, Pushed.runAction, action)
Reply With Quote