Skip to content

CanHelicopterUseNapalm

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • PatrolHelicopterAI::CanUseNapalm()
csharp
public bool CanUseNapalm()
{
	object returnvar = Interface.CallHook("CanHelicopterUseNapalm", this);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return Time.realtimeSinceStartup - this.lastNapalmTime >= UnityEngine.Random.Range(25f, 35f);
//---

Released under the MIT License.