Skip to content

CanHelicopterStrafeTarget

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanHelicopterStrafeTarget( PatrolHelicopterAI instance, BasePlayer ply )
{
    Puts( "CanHelicopterStrafeTarget works!" );
}

Location

  • PatrolHelicopterAI::ValidRocketTarget(BasePlayer ply)
csharp
public bool ValidRocketTarget(BasePlayer ply)
{
	object returnvar = Interface.CallHook("CanHelicopterStrafeTarget", this, ply);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return !(ply == null) && !ply.IsNearEnemyBase();
//---

Released under the MIT License.