Dota 2 Workshop Tools/Scripting/API/Global.ApplyDamage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo the test)
(Dota_Lebot push: Updated Page)
Line 1: Line 1:
"Returns the Damage Done"
{{Note | This page is automatically generated.  Any changes may be overwritten}}


;Example
== Function Description ==
<source lang="lua">
 
local damageTable = {
 
victim = player.playerHero,
''' float ApplyDamage(handle '''') '''
attacker = player.playerHero,
 
damage = m_damageAmount,
''Pass ''table'' - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.''
damage_type = DAMAGE_TYPE_PURE,
 
}
 
 
== Parameters ==
{| class="standard-table" style="width: 50%;"
! Type
! Name
! Description
|-
| handle
|
| No Description Set
|}
 
== Returns ==
 
''float'' - No Description Set

Revision as of 23:08, 8 August 2014

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

Function Description

float ApplyDamage(handle ')

Pass table - Inputs: victim, attacker, damage, damage_type, damage_flags, abilityReturn damage done.


Parameters

Type Name Description
handle No Description Set

Returns

float - No Description Set