Workshop.codes
Create

Closest Enemy To Player Last updated April 10, 2026

Description

Returns the living enemy player nearest to a specified player at the time of evaluation. Equivalent to Closest Player To with an opposing team filter, provided as a convenience value for common targeting expressions.

Snippet

Closest Enemy To Player(Event Player);

Properties

Returns: Player
Parameters: Player

Player
Type: Player, Default: Event Player
The reference player from whose position the nearest enemy is calculated.

Workshop.codes