Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 13:13, 9 August 2014 by RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page)
Jump to navigation Jump to search
Note.pngNote: This page is automatically generated. Any changes may be overwritten

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 No Description Set
handle b No Description Set

Returns

handle - No Description Set