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