Delegate Listeners.OnEntityTakeDamagePre
Called when an entity is about to take damage. Returning HookResult.Handled or greater will prevent the entire damage application process.
[ListenerName("OnEntityTakeDamagePre")]
public delegate HookResult Listeners.OnEntityTakeDamagePre(CBaseEntity entity, CTakeDamageInfo info)
Parameters
entityCBaseEntityThe entity that is about to take damage.
infoCTakeDamageInfoThe damage info.
Returns
- HookResult
- Called when an entity is about to take damage. Returning HookResult.Handled or greater will prevent the entire damage application process.