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 4: | Line 4: | ||
''' handle ReplaceHeroWith(int '''', string '''', int '''', int '''') ''' | ''' handle ReplaceHeroWith(int ''a'', string ''b'', int ''c'', int ''d'') ''' | ||
''(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 17: | Line 17: | ||
|- | |- | ||
| int | | int | ||
| | | a | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| string | | string | ||
| | | b | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| int | | int | ||
| | | c | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| int | | int | ||
| | | d | ||
| No Description Set | | No Description Set | ||
|} | |} | ||
Revision as of 23:14, 8 August 2014
Function Description
handle ReplaceHeroWith(int a, string b, int c, int d)
(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 | a | No Description Set |
| string | b | No Description Set |
| int | c | No Description Set |
| int | d | No Description Set |
Returns
handle - No Description Set