Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.ReplaceHeroWith: 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 6: | Line 6: | ||
''' handle ReplaceHeroWith(int '' | ''' 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 | ||
| | | iPlayerID | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| string | | string | ||
| | | pszHeroClass | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| int | | int | ||
| | | nGold | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| int | | int | ||
| | | nXP | ||
| No Description Set | | No Description Set | ||
|} | |} |
Revision as of 10:36, 20 June 2015

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