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

    3.9 years ago
  • Profile image

    @JSO18 ok

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

    3.9 years ago
  • Profile image

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

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

    3.9 years ago

1 Upvote

Log in in to upvote this post.