CTakeDamageInfo.AddDamage

From GMod Wiki

Jump to: navigation, search
Function
Syntax CTakeDamageInfo:AddDamage( Integer addition )
Description:
Adds to the damage of a CTakeDamageInfo.
Returns: nil
In Object: CTakeDamageInfo
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.AddDamage]CTakeDamageInfo.AddDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis makes players take 1 extra point of damage from any attack on them.
Used onNewerServer.png
Code
function GM:ScalePlayerDamage(ply,hitgroup,dmginfo)
	dmginfo:AddDamage(1)
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox