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

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 00:05, 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

int CreateUnitByNameAsync(string ', Vector ', bool ', handle ', handle ', int ', handle ')

Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )


Parameters

Type Name Description
string a No Description Set
Vector b No Description Set
bool c No Description Set
handle d No Description Set
handle e No Description Set
int f No Description Set
handle g No Description Set

Returns

int - No Description Set