The Neutral property determines whether the player is on a specific team.
- When true, the player is not on a specific team. This also means that the
Player/Teamproperty will be nil and the
Player/TeamColorwill be white.
- When false, the player is on a specific team. The
Player/Teamproperty will correspond to the
Teamthat the player is on, as will the
Checking if a Player is Neutral
This example checks if a player is neutral. If the player is neutral, the game prints:
Player is neutral!
If the player is neutral, the game prints:
Player is not neutral!
Note: Although this example prints the value of the local player’s neutral property, you can change the example to get the value for any player.