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