Jump to content
The simFlight Network Forums

Recommended Posts

Hello,

How can I get a delay in actions combined in one macro?

Example:

Aircraft with two pitot heat switches.

I created one macro to control both switches.

Instead of them both switching at the same time, I would like to see the second switch move a few seconds after the first one.

Is there a way to do this? I went through the FSUIPC documents several times and even searched for a sollution on this forum, but could not find it.

I appreciate and constructive response

Share this post


Link to post
Share on other sites

How can I get a delay in actions combined in one macro?

You'd need a small Lua plug-in instead of a macro. Just use ipc.control twice with an ipc.sleep between.

Regards

Pete

Share this post


Link to post
Share on other sites

Hmm, Guess I now have to read up on how to use a lua plug-in.

They are quite straightforward -- in factr more readable than macros. There are a lot of exaples provided in the package installed in your FSUIPC Documents folder (in the Modules folder), and even more contributed by Users in the User Contributions subforum.

Regards

Pete

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.