Skip to content

CanBradleyApcTarget

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanBradleyApcTarget( BradleyAPC instance, BaseEntity ent )
{
    Puts( "CanBradleyApcTarget works!" );
}

Location

  • BradleyAPC::VisibilityTest(BaseEntity ent)
csharp
//---
	else
	{
		Debug.LogWarning("Standard vis test!");
		flag = base.IsVisible(ent.CenterPoint(), float.PositiveInfinity);
	}
	object returnvar = Interface.CallHook("CanBradleyApcTarget", this, ent);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return flag;
//---

Released under the MIT License.