Portal Documentation
Discord GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ClosestPlayerTo

Returns the closest alive Player to a provided position. Can be filtered using a TeamId.

Note: If no players are alive when this block is called, the returned Player will be invalid.

Inputs

  1. Vector (Position)
  2. TeamId Optional

Output

  • Player

ClosestPlayerTo