OnPatrolHelicopterTakeDamage
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPatrolHelicopterTakeDamage( PatrolHelicopter instance, HitInfo info )
{
Puts( "OnPatrolHelicopterTakeDamage works!" );
}
Location
- PatrolHelicopter::Hurt(HitInfo info)
csharp
public override void Hurt(HitInfo info)
{
if (Interface.CallHook("OnPatrolHelicopterTakeDamage", this, info) != null)
{
return;
}
bool flag = false;
if (info.damageTypes.Total() >= base.health)
//---