Let’s say I wanted to use the events of craft a docked to craft b starts a thread. How does one go about changing the craft that it is set to? Do I use a set variable?

Tags
Question

5 Comments

  • Log in to leave a comment
  • Profile image
    15.7k Hylo

    I'll have to go back to sr2 to understand

    4.0 years ago
  • Profile image

    @JSO18 ok

    4.0 years ago
  • Profile image
    3,664 JSO18

    @Tweedle_Aerospace yes, I think on docking, craft a will become the craft you are controlling, and craft b will become the other. I am not sure but I think that is how it works.

    4.0 years ago
  • Profile image

    @QarabinaKa so craftA and craftB will update on the event of them docking?

    4.0 years ago
  • Profile image
    3,718 QarabinaKa

    No, don't use a set variable. They are local variables that can be used in the script of the event. An example is the part collision. Every time a part collides, that is called, but the variable 'part' changes for the part that collided in each.

    4.0 years ago

1 Upvote

Log in in to upvote this post.