FG Spreadshirt Swag
  1. #1

    Implementing a wait/sleep within an extension using Lua.

    From what I can scratch at the surface, it doesn't seem that LUA has a native wait function. Some programs work around this by suppling a clock callback of somekind.

    I write functionality and delayed work and queuing of it is part of my design padagrim. How can I replicate this?

  2. #2
    There's no mechanism in the FG API to provide timer or sleep support.

    Some creative souls use the existing events triggered by network messages or user interface events to trigger delayed actions.

    Regards,
    JPG

  3. #3
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    Have a look at the Combat Tracker Timer that was posted about a week ago. That uses the client connection monitoring timer....

  4. #4
    I guess that's another suggestion. This would allow things such as animations and timed events. I've looked at time combat tracker by mortgarra , I just wanted to confirm that there is indeed no native solution at the root level (sleep/wait/timeout)

  5. #5
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    Thats what the Wizard is saying in his reply - there is no timer or sleep support at the root level...

  6. #6
    No need for an ellipsis, I was re-stating the purpose for my original post as to why I didn't look at other extensions. Wiz answered it in a single post.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in