Dota 2 Workshop Tools/Scripting/API/Global.CreateHeroForPlayer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
(Dota_Lebot push: Updated Page)
Line 20: Line 20:
| string
| string
| a
| a
| No Description Set
| a DOTA hero by its dota_npc_units.txt name
|-
|-
| handle
| handle

Revision as of 03:07, 31 August 2014

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 a DOTA hero by its dota_npc_units.txt name
handle b No Description Set

Returns

handle - No Description Set