Announcement

Collapse
No announcement yet.

Global OnKey and OnTimer Event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global OnKey and OnTimer Event

    Hello friends,
    I have some LUA Code must be Written in OnKey and OnTimer Event of all pages.
    All pages of my project is 48. It takes a long time and effect in build program size.

    How can I use Global OnKey and OnTimer Event without write my codes in all pages?

  • #2
    No body here to answer me?

    Comment


    • #3
      Originally posted by mslight13 View Post
      No body here to answer me?

      Create the codes as functions then where you need the code past just the function name

      EG if you have a On Q Key event on Key you could do

      function DoKey(nkey)
      if nkey == 81 then
      -- do code
      end
      end

      Then on the pages just put in the Key Event page DoKey(e_Key) and simler for On timer but us would use e_ID
      Plugins or Sources MokoX
      BunnyHop 2021 Here

      Comment

      Working...
      X