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

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 10:20, 31 August 2014 by RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Note: This page is automatically generated. Any changes may be overwritten

Function Description

handle CreateHeroForPlayer(string unitName, handle player)

Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero


Type Name Description
string unitName a DOTA hero by its dota_npc_units.txt name
handle player a CDOTAPlayer handle


handle - The hero created