CTakeDamageInfo.AddDamage
From GMod Wiki
Function | |
Syntax | CTakeDamageInfo:AddDamage( Integer addition ) |
Description: | |
Adds to the damage of a CTakeDamageInfo. | |
Returns: | nil |
In Object: | CTakeDamageInfo |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.AddDamage]CTakeDamageInfo.AddDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | This makes players take 1 extra point of damage from any attack on them. |
---|---|
Used on | |
Code | function GM:ScalePlayerDamage(ply,hitgroup,dmginfo) dmginfo:AddDamage(1) end |
Output | N/A |