getNearestEnemyTo

getNearestEnemyTo(number entity) → integer enemy
Returns the enemy entity closest to the entity given as a parameter.

Returns the enemy entity closest, as the crow flies, to the entity given as a parameter (an enemy of your team, whatever the team of the given entity).

Parameters
Return