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

From Valve Developer Community
Jump to: navigation, search
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
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