Hello Guest it is April 18, 2024, 09:46:55 PM

Author Topic: How to make Lua wait for signal state to change  (Read 3318 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • 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,624 5,624
  • 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!