Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.AddItemByName: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
Line 8: | Line 8: | ||
''' void AddItemByName(string ''pszItemName'') ''' | ''' void AddItemByName(string ''pszItemName'') ''' | ||
'' | ''Add an item to this unit's inventory.'' | ||
Revision as of 23:31, 18 June 2015

Function Description
void AddItemByName(string pszItemName)
Add an item to this unit's inventory.
- Example
function CDOTA_BaseNPC:AddItemByName( pszItemName ) end
Parameters
Type | Name | Description |
---|---|---|
string | pszItemName | No Description Set |