Hello Guest it is December 06, 2019, 05:37:35 PM

Author Topic: How to make Lua wait for signal state to change  (Read 1441 times)

0 Members and 1 Guest are viewing this topic.

Re: How to make Lua wait for signal state to change
« Reply #10 on: December 08, 2017, 04:23:52 PM »
Hi,
signal 'loosendraw', missed that one!

I thought I saw it in a post...the same one that had:

mc.mcSignalGetHandle(inst,'GetMeACupOfCoffe')
mc.mcSignalGetHandle(inst,'AndPeelMeAGrape')

LOL.

Craig
My wife left with my best friend...
     and I miss him!

Offline Chaoticone

*
  • *
  •  5,633 5,633
  • Precision Chaos
    • View Profile
Re: How to make Lua wait for signal state to change
« Reply #11 on: December 08, 2017, 04:46:01 PM »
 ;D
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: How to make Lua wait for signal state to change
« Reply #12 on: December 09, 2017, 08:30:25 AM »
tightendraw is defined earlier as mc.OSIG_OUTPUT4. 
Anyhow, it works.  Stops the program and exits the macro as expected.
Will post the complete program once it is cleaned up.

Offline Chaoticone

*
  • *
  •  5,633 5,633
  • Precision Chaos
    • View Profile
Re: How to make Lua wait for signal state to change
« Reply #13 on: December 09, 2017, 11:21:52 AM »
OK, Good. I thought you may have defined it elsewhere. That's why I said not sure. I knew if you hadn't defined it elsewhere it would not work. I also knew there was a chance you had. Anyway, I felt like I needed to say something in case you did not understand that or others looked at it as an example.
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!