bf6-portal-mod-types
    Preparing search index...

    Function ClosestPlayerTo

    • Returns the closest alive player to a provided position. Note: If no players are alive when this block is called, the returned player will be invalid.

      Parameters

      • vector: Vector

        The position to find the closest player to.

      Returns Player

      Player The closest player.

    • Returns the closest alive player, on a specific team, to a provided position. Note: If no players are alive when this block is called, the returned player will be invalid.

      Parameters

      • vector: Vector

        The position to find the closest player to.

      • team: Team

        The team to filter the players by.

      Returns Player

      Player The closest player.

    • Returns the closest alive player to a provided position. Can be filtered using a team. Note: If no players are alive when this block is called, the returned player will be invalid.

      Parameters

      Returns Player

    • Returns the closest alive player to a provided position. Can be filtered using a team. Note: If no players are alive when this block is called, the returned player will be invalid.

      Parameters

      Returns Player