Garry's Mod Wiki


Entity:TakeDamage( number damageAmount, Entity attacker, Entity inflictor )


Applies the specified amount of damage to the entity with DMG_GENERIC flag.

Calling this function on the victim entity in ENTITY:OnTakeDamage can cause infinite loops.


1 number damageAmount
The amount of damage to be applied.
2 Entity attacker
The entity that initiated the attack that caused the damage.
3 Entity inflictor
The entity that applied the damage, eg. a weapon.

Page Links

Special Pages



Render Time: 33ms

DB GetPage 3
Generate Html 9
SaveChanges (1) 8
Render Body 0
Render Sidebar 10