Aircraft Algorithm

Started by MrJohn on

Topic category: Help with modding (Java Edition)

Last seen on 13:47, 12. Feb 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Aircraft Algorithm

How to make an algorithm for an airplane so that when each player (for example, 2 players) spawns an airplane, gets into it and presses w, then one flies in one direction, the other flies in the other.

At first I tried to make an algorithm through a global variable, but this is only suitable for one person, because if you spawn 2 planes, then when the first one flies in one direction, the second flies that one even without the player.

I think how to do it through the code, it is necessary that there is one procedure and there is a w button in the if condition block.

If there are any options, I will be grateful )))