Garry's Mod Wiki

NPC:MarkTookDamageFromEnemy

  NPC:MarkTookDamageFromEnemy( Entity enemy = nil )

Just Added

This was just added in the latest version (2022.06.08). It might only be available on the Dev Branch right now.

Description

Marks the NPC as took damage from given entity.

See also NPC:GetLastTimeTookDamageFromEnemy.

Arguments

1 Entity enemy = nil
The enemy to mark. Defaults to currently active enemy (NPC:GetEnemy)