Entity/TakeDamage

From Garry's Mod
Jump to: navigation, search
 Entity:TakeDamage( )

Contents

Description

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

WARNING

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

Arguments

number damageAmount

The amount of damage to be applied.

Arguments

Entity attacker

The entity that initiated the attack that caused the damage.

Arguments

Entity inflictor

The entity that applied the damage, eg. a weapon.
Personal tools
Navigation