Jump to content

Recommended Posts

OK, I've a general question about the API of KSP that might help someone in the future. That's why I started a new topic.

How does the "fsm.RunEvent"-thing work? ... so, for example, what's the difference between the function "Decouple" and "fsm.RunEvent(on_preattachedDecouple)" called on a ModuleDockingNode??

And why do I find this "fsm" only in the docking node? Is this the only one using it? Or is this "the latest technology that will go into all nodes in the future"? ... does someone have information about this??

Rudolf

 

Link to comment
Share on other sites

Educated guess here but you might try looking into Finite State Machines (FSM) - I could see a FSM being used on a docking port with states like Docked, Undocking, Undocked, and Docking. the FSM could then be setup to keep the state from transitioning from Undocking back to Docked without first going through the Undocked and Docking states.

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...