Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.ReplaceHeroWith: Difference between revisions

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




''' handle ReplaceHeroWith(int ''a'', string ''b'', int ''c'', int ''d'') '''
''' handle ReplaceHeroWith(int ''iPlayerID'', string ''pszHeroClass'', int ''nGold'', int ''nXP'') '''


''(playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP''
''(playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP''
Line 19: Line 19:
|-
|-
| int
| int
| a
| iPlayerID
| No Description Set
| No Description Set
|-
|-
| string
| string
| b
| pszHeroClass
| No Description Set
| No Description Set
|-
|-
| int
| int
| c
| nGold
| No Description Set
| No Description Set
|-
|-
| int
| int
| d
| nXP
| No Description Set
| No Description Set
|}
|}

Revision as of 10:36, 20 June 2015

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

Function Description

handle ReplaceHeroWith(int iPlayerID, string pszHeroClass, int nGold, int nXP)

(playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP


Parameters

Type Name Description
int iPlayerID No Description Set
string pszHeroClass No Description Set
int nGold No Description Set
int nXP No Description Set

Returns

handle - No Description Set