Skip to content

GetLocalHeroIndex ​

Retrieves the index of the local hero.


GetLocalHeroIndex()number ​

Returned:

  • number - The index of the local hero. If local hero is not exists, -1 is returned.