sm.ai.getClosestVisibleTeamOpponent
Returns the character, with an opposing color, closest to the unit.
Kind: Function
Environments: Game
Game
sm.ai.getClosestVisibleTeamOpponent( unit, color )
Parameters:
Returns:
| Type | Description |
|---|---|
| Character | The character. |