Lua Macros script not working with Fly with Lua.

Announcements, questions
BradyBrother100
Posts: 7
Joined: 03 May 2019, 01:17

Re: Lua Macros script not working with Fly with Lua.

Post by BradyBrother100 » 22 May 2019, 23:42

I got to where when I press play and the only command in there is lmc_xpl_command('sim/lights/landing_lights_on') that gets executed. It does turn on the lights but when I add the, if string.byte part, it doesn't work.

admin
Site Admin
Posts: 620
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Lua Macros script not working with Fly with Lua.

Post by admin » 23 May 2019, 08:16

Then it's just pure debugging of your script. Print the number in the handler and find out, why string.byte gives other number so the if condition doesn't match.
Just lua scripting...
Petr Medek
LUAmacros author

Post Reply