# On Player Team Change

![](/files/4dnXuUO00PdcKl0O3IVL)

## Description

Event called when any player changes teams

## Node Type

Nodes fall into two basic categories: Data and Execution. This node listens for an Event, then triggers it's node string.

## Inputs

| Input | Type | Required | Description |
| ----- | ---- | -------- | ----------- |
| N/A   | N/A  | N/A      |             |

## Outputs

| Output   | Type   | Description                                 |
| -------- | ------ | ------------------------------------------- |
| Player   | Object | The player who has changed teams.           |
| Old Team | Team   | Which team player was on before the change. |
| New Team | Team   | Which team player changed to.               |

\
\
**Contributors**

AddiCt3d 2CHa0s


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.thescriptersguild.com/scripting/nodes/events-players/on-player-team-change.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
