Jump to content

Action group cooloff


Recommended Posts

Hello

I'm sure I saw a thread about KSPAction which explained how to add a cooloff period, but I can't find it again (if it existed) and can't find reference elsewhere. Did I imagine it?

Link to comment
Share on other sites

As far as I know, the KSPAction does not have any sort of cooldown built in.

It would be pretty straightforward to add the delay code to whatever action you are executing however.

For instance, KSPAction activate, set a cooldown bool to true, until the cooldown bool goes false again on time, further activations of that KSPAction do nothing.

Note this means the KSPAction still fires, it just does nothing because of the timer in the code attached to the action.

D.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...