Gamemode.ScaleNPCDamage
From GMod Wiki
Event Hook | |
Hook Name | ScaleNPCDamage |
Syntax | GM:ScaleNPCDamage( Npc npc, Enum hitgroup, Ctakedamageinfo dmginfo ) |
Description | Modifies the damage received by an NPC. |
Returns | Ctakedamageinfo |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.ScaleNPCDamage]Gamemode.ScaleNPCDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Makes every NPC 5 times weaker. |
---|---|
Used on | |
Code | function ScaleDamage( npc, hitgroup, dmginfo ) dmginfo:ScaleDamage( 5 ) end hook.Add("ScaleNPCDamage","ScaleDamage",ScaleDamage) |
Output | N/A |
See Also