Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
Function Description
handle CreateHeroForPlayer(string ', handle ')
Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
Parameters
| Type | Name | Description |
|---|---|---|
| string | No Description Set | |
| handle | No Description Set |
Returns
handle - No Description Set