Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
Line 24: | Line 24: | ||
| handle | | handle | ||
| b | | b | ||
| | | a [[Dota 2 Workshop Tools/Scripting/API#CDOTAPlayer | CDOTAPlayer]] handle | ||
|} | |} | ||
Revision as of 03:13, 31 August 2014

Function Description
handle CreateHeroForPlayer(string a, handle b)
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 | a | a DOTA hero by its dota_npc_units.txt name |
handle | b | a CDOTAPlayer handle |
Returns
handle - No Description Set