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

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
Line 45: Line 45:
== Returns ==
== Returns ==


''handle'' - No Description Set
''handle'' - The handle to the unit that was created

Revision as of 08:55, 17 August 2014

Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

handle CreateUnitByName(string a, Vector b, bool c, handle d, handle e, int f)

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


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

Returns

handle - The handle to the unit that was created