|
#1
|
|||
|
|||
Vizact.call error
hi,
I got this problem..I kept on getting error with this code Code:
action = vizact.sequence(vizact.call(Pushed.visible,True),vizact.call(PushedWalkBtn)) vizact.onpick( PushBox, Pushed.runAction, action) def PushedWalkBtn(): stopcollide() carPAUSEaction() inviscar() action = vizact.sequence(vizact.call(Pushed.visible,True),v izact.call(PushedWalkBtn())) NameError: name 'PushedWalkBtn' is not defined to what I saw in Vizard help, the syntax should be no problem which is <vizact>.call( func args ) May I know what was the problem? THANKs |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
hah...silly me...thanks for correcting..
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
5DT glove ultra error 5dt.dls failed | kabk | Vizard | 2 | 05-05-2009 12:43 PM |
Loading morph mesh error. | vEsotu | Vizard | 2 | 03-14-2009 06:29 PM |
Strange Wii Mote error... | shivanangel | Vizard | 8 | 02-18-2009 12:32 PM |
Error Message | Jerhy | Vizard | 1 | 02-28-2006 01:59 PM |
The error window that couldn't | FlyingWren | Vizard | 2 | 12-02-2003 08:23 AM |