|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Jan 16, 2009 10:38 pm
How do you pull param from oninput trigger in LUA? |
I have an oninput trigger but the LUA script in it won't work because I am not sure how to pull the value into it.
I tried local arg = zs.param(1) but that doesn't work. When I put print(zs.param(1)) it prints 0. It works fine for regular triggers but it won't work in the oninput trigger.
Any ideas? I'm trying to get a lot done and keep running into simple issues that aren't explained anywhere. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Jan 16, 2009 11:30 pm |
Good god. Never mind. It was another case of LUA just stopped working AAGAIN. I closed CMUD and restarted and zs.param(1) worked. I really hope it doesn't do this after I write all of this LUA.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Jan 17, 2009 6:20 am |
It's weird that you're having so many problems with this - you might want to delete CMUD's lua.dll (or lua5.1.dll, I can't remember which is for CMUD) and rerunning the installer and see if that helps.
|
|
|
|
|
|