Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.ModifyHealth: 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: | ||
''' void ModifyHealth(int '' | ''' void ModifyHealth(int ''iDesiredHealthValue'', handle ''hAbility'', bool ''bLethal'', int ''iAdditionalFlags'') ''' | ||
''Sets the health to a specific value, with optional flags or inflictors.'' | ''Sets the health to a specific value, with optional flags or inflictors.'' | ||
Line 19: | Line 19: | ||
|- | |- | ||
| int | | int | ||
| | | iDesiredHealthValue | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| handle | | handle | ||
| | | hAbility | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| bool | | bool | ||
| | | bLethal | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| int | | int | ||
| | | iAdditionalFlags | ||
| No Description Set | | No Description Set | ||
|} | |} |
Revision as of 19:32, 19 June 2015

Function Description
void ModifyHealth(int iDesiredHealthValue, handle hAbility, bool bLethal, int iAdditionalFlags)
Sets the health to a specific value, with optional flags or inflictors.
Parameters
Type | Name | Description |
---|---|---|
int | iDesiredHealthValue | No Description Set |
handle | hAbility | No Description Set |
bool | bLethal | No Description Set |
int | iAdditionalFlags | No Description Set |