Skip to content

CanHelicopterStrafe

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanHelicopterStrafe( PatrolHelicopterAI instance )
{
    Puts( "CanHelicopterStrafe works!" );
}

Location

  • PatrolHelicopterAI::CanStrafe()
csharp
public bool CanStrafe()
{
	object returnvar = Interface.CallHook("CanHelicopterStrafe", this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return Time.realtimeSinceStartup - this.lastStrafeTime >= UnityEngine.Random.Range(15f, 25f) && this.CanInterruptState();
//---

Released under the MIT License.