Description
Returns the deployable from a specified player's active deployables that is nearest to a given world position. Returns Null if the player has no active deployables. Useful for proximity-based deployable interaction, targeting, or effect anchoring.
Snippet
Closest Deployable To Position(Event Player, Position Of(Event Player));
Properties
Returns: Deployable
Parameters: Player, Position
Player
Type: Player, Default: Event Player
The player whose deployables will be searched.Position
Type: Vector, Default: Vector(0, 0, 0)
The world position from which proximity is measured.