It would be a lot easier to read if you just copied and pasted the plugin, without all those line numbers.
A script for walking around and doing things with triggers
Posted by Nick Gammon on Mon 17 Aug 2009 05:27 AM — 2 posts, 7,190 views.
Quote:
The first time it runs, it sends the value "nil" instead of sending a direction.
The first time it runs, it sends the value "nil" instead of sending a direction.
You start off step like this:
step = "1"
That is not the first entry in the table. This would be better:
step = 1
Lua distinguishes between "1" and 1 as table keys.