sm.ai.getClosestVisiblePlayerCharacter

Returns the character closest to the unit.

Kind: Function

Environments: Game

Game

sm.ai.getClosestVisiblePlayerCharacter( unit )

Open the full Game reference

Parameters:

Name Type Description
unit Unit The unit.

Returns:

Type Description
Character The character.