TargetClosest

Targets an entity closest to the entity with filters.

Works with Players too.

Postal III Ultrapatch+Angel v1.3.0+ Feature

The following function will only work in Postal III Ultrapatch+Angel v1.3.0 or higher.

Syntax

TargetClosest 1,[filter1],[filter2],[filter3],... -- Targets closest entity, ignored entities will never be a target.

TargetClosest 0,[filter1],[filter2],[filter3],... -- Targets closest entity, ignored entities can be a target.

TargetClosest [object],[filter1],[filter2],[filter3],... -- [object] is now the central location to check for closest entity, ignored entities can be a target.