nyuuzyou/wikis huggingface dataset:
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.MoveToNPCToGiveItem

== Function Description ==
 void MoveToNPCToGiveItem(handle npc, handle item) 
Give an item to another unit.
;Example
-- We create a courier and then order player 0's hero to
-- give the item it has in slot 0 to the courier. If the
-- hero does not have an item in slot 0, we give it a blink
-- dagger (in slot 0).
local hero0 = PlayerResource:GetPlayer(0):GetAssignedHero()
if hero0:GetItemInSlot(0) == nil then
 local blink = CreateItem("item_blink", nil, nil)
 blink:SetPurchaseTime(0)
 hero0:AddItem(blink)
end
local callback = function (courier)
 hero0:MoveToNPCToGiveItem(courier, hero0:GetItemInSlot(0))
end
CreateUnitByNameAsync("npc_dota_courier", Vector(0, 0, 0), true, nil,
 nil, DOTA_TEAM_GOODGUYS, callback)
== Parameters ==
Type 	Name	Description
handle	npc 	The NPC that should get the item
handle	item	The item that should be given to the NPC
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.MoveToPositionAggressive

== Function Description ==
 void MoveToPositionAggressive(Vector vDest) 
Issue an Attack-Move-To command
== Parameters ==
Type 	Name 	Description
Vector	vDest	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.NotifyWearablesOfModelChange

== Function Description ==
 void NotifyWearablesOfModelChange(bool bOriginalModel) 
''''
;Example
function CDOTA_BaseNPC:NotifyWearablesOfModelChange( bOriginalModel ) end
== Parameters ==
Type	Name 	Description
bool	bOriginalModel	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.PerformAttack

== Function Description ==
 void PerformAttack(handle hTarget, bool bUseCastAttackOrb, bool bProcessProcs, bool bSkipCooldown, bool bIgnoreInvis) 
Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
== Parameters ==
Type 	Name 	Description
handle	hTarget 	No Description Set
bool 	bUseCastAttackOrb	No Description Set
bool 	bProcessProcs 	No Description Set
bool 	bSkipCooldown 	No Description Set
bool 	bIgnoreInvis 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.Purge

== Function Description ==
 void Purge(bool bRemovePositiveBuffs, bool bRemoveDebuffs, bool bFrameOnly, bool bRemoveStuns, bool bRemoveExceptions) 
(bool RemovePositiveBuffs, bool RemoveDebuffs, bool BuffsCreatedThisFrameOnly, bool RemoveStuns, bool RemoveExceptions
;Example
function CDOTA_BaseNPC:Purge( bRemovePositiveBuffs, bRemoveDebuffs, bFrameOnly, bRemoveStuns, bRemoveExceptions ) end
== Parameters ==
Type	Name 	Description
bool	bRemovePositiveBuffs	No Description Set
bool	bRemoveDebuffs 	No Description Set
bool	bFrameOnly 	No Description Set
bool	bRemoveStuns 	No Description Set
bool	bRemoveExceptions 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.ReduceMana

== Function Description ==
 void ReduceMana(float flAmount) 
Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
== Parameters ==
Type 	Name 	Description
float	flAmount	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.RemoveAbility

== Function Description ==
 void RemoveAbility(string pszAbilityName) 
Remove an ability from this unit by name.
== Parameters ==
Type 	Name 	Description
string	pszAbilityName	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.RemoveGesture

== Function Description ==
 void RemoveGesture(int nActivity) 
Remove the given gesture activity.
;Example
function CDOTA_BaseNPC:RemoveGesture( nActivity ) end
== Parameters ==
Type	Name 	Description
int 	nActivity	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.RemoveHorizontalMotionController

== Function Description ==
 void RemoveHorizontalMotionController(handle hBuff) 
''''
;Example
function CDOTA_BaseNPC:RemoveHorizontalMotionController( hBuff ) end
== Parameters ==
Type 	Name 	Description
handle	hBuff	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.RemoveModifierByNameAndCaster

== Function Description ==
 void RemoveModifierByNameAndCaster(string pszScriptName, handle hCaster) 
Removes a modifier that was cast by the given caster
== Parameters ==
Type 	Name 	Description
string	pszScriptName	No Description Set
handle	hCaster 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.RemoveVerticalMotionController

== Function Description ==
 void RemoveVerticalMotionController(handle hBuff) 
''''
;Example
function CDOTA_BaseNPC:RemoveVerticalMotionController( hBuff ) end
== Parameters ==
Type 	Name 	Description
handle	hBuff	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.Script TakeItem

== Function Description ==
 void Script_TakeItem(handle hItem) 
Hidden item.
;Example
local hero = PlayerResource:GetPlayer(0):GetAssignedHero()
if hero:HasInventory() then
 local item = hero:GetItemInSlot(0)
 if item then
 hero:Script_TakeItem( item )
 end
end
== Parameters ==
Type 	Name 	Description
handle	hItem	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetAbilityByIndex

== Function Description ==
 void SetAbilityByIndex(handle hAbility, int iIndex) 
change ability index.
;Example
local ability = hero:GetAbilityByIndex(0)
hero:SetAbilityByIndex(ability,1)
== Parameters ==
Type 	Name 	Description
handle	hAbility	No Description Set
int 	iIndex 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetAdditionalBattleMusicWeight

== Function Description ==
 void SetAdditionalBattleMusicWeight(float flWeight) 
Combat involving this creature will have this weight added to the music calcuations
== Parameters ==
Type 	Name 	Description
float	flWeight	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetAggroTarget

== Function Description ==
 void SetAggroTarget(handle hAggroTarget) 
Set this unit's aggro target to a specified unit.
;Example
function CDOTA_BaseNPC:SetAggroTarget( hAggroTarget ) end
== Parameters ==
Type 	Name 	Description
handle	hAggroTarget	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetBaseMagicalResistanceValue

== Function Description ==
 void SetBaseMagicalResistanceValue(float flMagicalResistanceValue) 
Sets base magical armor value.
== Parameters ==
Type 	Name 	Description
float	flMagicalResistanceValue	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetCanSellItems

== Function Description ==
 void SetCanSellItems(bool bCanSell) 
Set whether or not this unit is allowed to sell items (bCanSellItems)
;Example
function CDOTA_BaseNPC:SetCanSellItems( bCanSell ) end
== Parameters ==
Type	Name 	Description
bool	bCanSell	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetControllableByPlayer

== Function Description ==
 void SetControllableByPlayer(int iIndex, bool bSkipAdjustingPosition) 
Set this unit controllable by the player with the passed ID.
== Parameters ==
Type	Name 	Description
int 	iIndex 	No Description Set
bool	bSkipAdjustingPosition	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetCursorTargetingNothing

== Function Description ==
 void SetCursorTargetingNothing(bool bTargetingNothing) 
No Description Set
== Parameters ==
Type	Name 	Description
bool	bTargetingNothing	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetCustomHealthLabel

== Function Description ==
 void SetCustomHealthLabel(string pLabel, int r, int g, int b) 
''''
;Example
function CDOTA_BaseNPC:SetCustomHealthLabel( pLabel, r, g, b ) end
== Parameters ==
Type 	Name 	Description
string	pLabel	No Description Set
int 	r 	No Description Set
int 	g 	No Description Set
int 	b 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetDeathXP

== Function Description ==
 void SetDeathXP(int iXPBounty) 
Set the XP bounty on this unit
== Parameters ==
Type	Name 	Description
int 	iXPBounty	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetIdleAcquire

== Function Description ==
 void SetIdleAcquire(bool bIdleAcquire) 
No Description Set
== Parameters ==
Type	Name 	Description
bool	bIdleAcquire	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetMaximumGoldBounty

== Function Description ==
 void SetMaximumGoldBounty(int iGoldBountyMax) 
Set the maximum gold bounty for this unit.
== Parameters ==
Type	Name 	Description
int 	iGoldBountyMax	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetMinimumGoldBounty

== Function Description ==
 void SetMinimumGoldBounty(int iGoldBountyMin) 
Set the minimum gold bounty for this unit.
== Parameters ==
Type	Name 	Description
int 	iGoldBountyMin	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetModifierStackCount

== Function Description ==
 void SetModifierStackCount(string modifierName, handle hCaster, int modifierCount) 
Sets the stack count of a modifier.
;Example
--Sets the modifer's stack count to 10
local playerHero = PlayerResource:GetPlayer(1):GetAssignedHero(
hero:SetModifierStackCount("modifier_name", playerHero, 10)
== Parameters ==
Type 	Name 	Description
string	modifierName 	No Description Set
handle	hCaster 	true if running asynchronously
int 	modifierCount	true if running asynchronously
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetMustReachEachGoalEntity

== Function Description ==
 void SetMustReachEachGoalEntity(bool must) 
Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
== Parameters ==
Type	Name	Description
bool	must	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetNeverMoveToClearSpace

== Function Description ==
 void SetNeverMoveToClearSpace(bool neverMoveToClearSpace) 
If set to true, we will never attempt to move this unit to clear space, even when it unphases.
== Parameters ==
Type	Name 	Description
bool	neverMoveToClearSpace	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetOrigin

== Function Description ==
 void SetOrigin(Vector vLocation) 
Set the unit's origin.
;Example
function CDOTA_BaseNPC:SetOrigin( vLocation ) end
== Parameters ==
Type 	Name 	Description
Vector	vLocation	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetOriginalModel

== Function Description ==
 void SetOriginalModel(string originalModel) 
Sets the original model of this entity, which it will tend to fall back to anytime its state changes
== Parameters ==
Type 	Name 	Description
string	originalModel	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetPhysicalArmorBaseValue

== Function Description ==
 void SetPhysicalArmorBaseValue(float flPhysicalArmorValue) 
Sets base physical armor value.
== Parameters ==
Type 	Name 	Description
float	flPhysicalArmorValue	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SetStolenScepter

== Function Description ==
 void SetStolenScepter(bool bStolenScepter) 
No Description Set
== Parameters ==
Type	Name 	Description
bool	bStolenScepter	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SpendMana

== Function Description ==
 void SpendMana(float flManaSpent, handle hAbility) 
Spend mana from this unit, this can be used for spending mana from abilities or item usage.
== Parameters ==
Type 	Name 	Description
float 	flManaSpent	No Description Set
handle	hAbility 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.StartGesture

== Function Description ==
 void StartGesture(int nActivity) 
Add the given gesture activity.
;Example
function CDOTA_BaseNPC:StartGesture( nActivity ) end
== Parameters ==
Type	Name 	Description
int 	nActivity	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.StartGestureWithPlaybackRate

== Function Description ==
 void StartGestureWithPlaybackRate(int nActivity fl PlaybackRate) 
Add the given gesture activity with custom playback rate.
;Example
function CDOTA_BaseNPC:StartGestureWithPlaybackRate( ACT_DOTA_SPAWN, 1.3 ) end
Category: Dota 2 Workshop Tools
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SwapAbilities

== Function Description ==
 void SwapAbilities(string pAbilityName1, string pAbilityName2, bool bEnable1, bool bEnable2) 
Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, bool bEnable1, bool bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
== Parameters ==
Type 	Name 	Description
string	pAbilityName1	No Description Set
string	pAbilityName2	No Description Set
bool 	bEnable1 	No Description Set
bool 	bEnable2 	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SwapItems

== 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
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.TriggerSpellAbsorb

== Function Description ==
 bool TriggerSpellAbsorb(handle hAbility) 
Query whether the passed ability will trigger spell absorb on this unit.
== Parameters ==
Type 	Name 	Description
handle	hAbility	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.TriggerSpellReflect

== Function Description ==
 void TriggerSpellReflect(handle hAbility) 
Trigger the Lotus Orb-like effect.(hAbility)
;Example
function CDOTA_BaseNPC:TriggerSpellReflect( hAbility ) end
== Parameters ==
Type 	Name 	Description
handle	hAbility	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Building.SetInvulnCount

== Function Description ==
 void SetInvulnCount(int nInvulnCount) 
Set the invulnerability counter of this building.
== Parameters ==
Type	Name 	Description
int 	nInvulnCount	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Building
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.CreatureLevelUp

== Function Description ==
 void CreatureLevelUp(int iLevels) 
Level the creature up by the specified number of levels
== Parameters ==
Type	Name 	Description
int 	iLevels	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetArmorGain

== Function Description ==
 void SetArmorGain(float flArmorGain) 
Set the armor gained per level on this creature.
== Parameters ==
Type 	Name 	Description
float	flArmorGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetAttackTimeGain

== Function Description ==
 void SetAttackTimeGain(float flAttackTimeGain) 
Set the attack time gained per level on this creature.
== Parameters ==
Type 	Name 	Description
float	flAttackTimeGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetBountyGain

== Function Description ==
 void SetBountyGain(int nBountyGain) 
Set the bounty gold gained per level on this creature.
== Parameters ==
Type	Name 	Description
int 	nBountyGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetChampion

== Function Description ==
 void SetChampion(bool bIsChampion) 
Flag this unit as a champion creature.
== Parameters ==
Type	Name 	Description
bool	bIsChampion	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetDamageGain

== Function Description ==
 void SetDamageGain(int nDamageGain) 
Set the damage gained per level on this creature.
== Parameters ==
Type	Name 	Description
int 	nDamageGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetDisableResistanceGain

== Function Description ==
 void SetDisableResistanceGain(float flDisableResistanceGain) 
Set the disable resistance gained per level on this creature.
== Parameters ==
Type 	Name 	Description
float	flDisableResistanceGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetHPGain

== Function Description ==
 void SetHPGain(int nHPGain) 
Set the hit point's gained per level on this creature.
== Parameters ==
Type	Name 	Description
int 	nHPGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetHPRegenGain

== Function Description ==
 void SetHPRegenGain(float flHPRegenGain) 
Set the hit point's regen gained per level on this creature.
== Parameters ==
Type 	Name 	Description
float	flHPRegenGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetMagicResistanceGain

== Function Description ==
 void SetMagicResistanceGain(float flMagicResistanceGain) 
Set the magic resistance gained per level on this creature.
== Parameters ==
Type 	Name 	Description
float	flMagicResistanceGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetManaGain

== Function Description ==
 void SetManaGain(int nManaGain) 
Set the mana point's gained per level on this creature.
== Parameters ==
Type	Name 	Description
int 	nManaGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetManaRegenGain

== Function Description ==
 void SetManaRegenGain(float flManaRegenGain) 
Set the mana point's regen gained per level on this creature.
== Parameters ==
Type 	Name 	Description
float	flManaRegenGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetMoveSpeedGain

== Function Description ==
 void SetMoveSpeedGain(int nMoveSpeedGain) 
Set the move speed gained per level on this creature.
== Parameters ==
Type	Name 	Description
int 	nMoveSpeedGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Creature.SetXPGain

== Function Description ==
 void SetXPGain(int nXPGain) 
Set the xp reward gained per level on this creature.
== Parameters ==
Type	Name 	Description
int 	nXPGain	No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Creature
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.AddExperience

== Function Description ==
 bool AddExperience(float amount, int nReason, bool bApplyBotDifficultyScaling, bool bIncrementTotal) 
Adds experience to this unit.
;Example
--Upgrade any spawned hero to Level 6
function MyGameMode:OnNPCSpawned( keys )
 local spawnedUnit = EntIndexToHScript( keys.entindex )
 if spawnedUnit:IsHero() then
 local level = spawnedUnit:GetLevel()
 while level < 6 do
 spawnedUnit:AddExperience (2000,false)
 level = spawnedUnit:GetLevel()
 end
 end
end
== Parameters ==
Type 	Name 	Description
float	amount 	No Description Set
int 	nReason 	No Description Set
bool 	bApplyBotDifficultyScaling	No Description Set
bool 	bIncrementTotal 	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetAdditionalOwnedUnits

== Function Description ==
 table GetAdditionalOwnedUnits() 
''''
;Example
function CDOTA_BaseNPC_Hero:GetAdditionalOwnedUnits( ) end
== Returns ==
table - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetAttacker

== Function Description ==
 int GetAttacker(int nIndex) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nIndex	No Description Set
== Returns ==
int - Return the attacker Player ID.
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetDeathGoldCost

== Function Description ==
 int GetDeathGoldCost() 
This function returns the gold that will be removed from the hero when it is killed. If the hero is already dead this function will return the gold that was removed when the hero died.
== Returns ==
int - Gold removed from hero upon death.
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetNumItemsInInventory

== Function Description ==
 int GetNumItemsInInventory() 
''''
;Example
function CDOTA_BaseNPC_Hero:GetNumItemsInInventory( ) end
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetNumItemsInStash

== Function Description ==
 int GetNumItemsInStash() 
''''
;Example
function CDOTA_BaseNPC_Hero:GetNumItemsInStash( ) end
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetRespawnsDisabled

== Function Description ==
 bool GetRespawnsDisabled() 
Is this hero prevented from respawning?
;Example
function CDOTA_BaseNPC_Hero:GetRespawnsDisabled( ) end
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.GetTogglableWearable

== Function Description ==
 handle GetTogglableWearable(int nSlotType) 
Get wearable entity in slot (slot)
;Example
function CDOTA_BaseNPC_Hero:GetTogglableWearable( nSlotType ) end
== Parameters ==
Type	Name 	Description
int 	nSlotType	No Description Set
== Returns ==
handle - No Description Set
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero
Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC Hero.HasRoomForItem

== Function Description ==
 int HasRoomForItem(string pItemName, bool bIncludeStashCombines, bool bAllowSelling) 
Args: const char* pItemName, bool bIncludeStashCombines, bool bAllowSelling
== Parameters ==
Type 	Name 	Description
string	pItemName 	No Description Set
bool 	bIncludeStashCombines	No Description Set
bool 	bAllowSelling 	No Description Set
== Returns ==
int - 0:Room Available on Hero, 2:Will Combine on Hero, 3:Stacking Room Available on Hero, 4:Item will be moved into the stash
Category:Dota2Function
Category:CDOTA_BaseNPC_Hero