Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SwapItems

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 17:34, 30 June 2015 by RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

void SwapItems(int nSlot1, int nSlot2)

Swap the contents of two item slots (slot1, slot2)


Example
function CDOTA_BaseNPC:SwapItems( nSlot1, nSlot2 ) end

Parameters

Type Name Description
int nSlot1 No Description Set
int nSlot2 No Description Set