Skip to content

CanBeHomingTargeted

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanBeHomingTargeted( AttackHeliPilotFlare instance )
{
    Puts( "CanBeHomingTargeted works!" );
}
csharp
private void CanBeHomingTargeted( BaseHelicopter instance )
{
    Puts( "CanBeHomingTargeted works!" );
}
csharp
private void CanBeHomingTargeted( CH47Helicopter instance )
{
    Puts( "CanBeHomingTargeted works!" );
}
csharp
private void CanBeHomingTargeted( PatrolHelicopter instance )
{
    Puts( "CanBeHomingTargeted works!" );
}
csharp
private void CanBeHomingTargeted( PlayerHelicopter instance )
{
    Puts( "CanBeHomingTargeted works!" );
}
csharp
private void CanBeHomingTargeted( RoadFlare instance )
{
    Puts( "CanBeHomingTargeted works!" );
}

Location

  • AttackHeliPilotFlare::IsValidHomingTarget()
  • BaseHelicopter::IsValidHomingTarget()
  • CH47Helicopter::IsValidHomingTarget()
  • PatrolHelicopter::IsValidHomingTarget()
  • PlayerHelicopter::IsValidHomingTarget()
  • RoadFlare::IsValidHomingTarget()
csharp
public bool IsValidHomingTarget()
{
	object returnvar = Interface.CallHook("CanBeHomingTargeted", this);
	return !(returnvar is bool) || (bool)returnvar;
}
csharp
public virtual bool IsValidHomingTarget()
{
	object returnvar = Interface.CallHook("CanBeHomingTargeted", this);
	return !(returnvar is bool) || (bool)returnvar;
}
csharp
public override bool IsValidHomingTarget()
{
	object returnvar = Interface.CallHook("CanBeHomingTargeted", this);
	return returnvar is bool && (bool)returnvar;
}
csharp
public bool IsValidHomingTarget()
{
	object returnvar = Interface.CallHook("CanBeHomingTargeted", this);
	return !(returnvar is bool) || (bool)returnvar;
}
csharp
public override bool IsValidHomingTarget()
{
	object returnvar = Interface.CallHook("CanBeHomingTargeted", this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return base.IsOn();
//---
csharp
public bool IsValidHomingTarget()
{
	object returnvar = Interface.CallHook("CanBeHomingTargeted", this);
	return !(returnvar is bool) || (bool)returnvar;
}

Released under the MIT License.