Skip to content

OnHelicopterRetire

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnHelicopterRetire( PatrolHelicopterAI instance )
{
    Puts( "OnHelicopterRetire works!" );
    return null;
}

Location

  • PatrolHelicopterAI::Retire()
csharp
public void Retire()
{
	if (!isRetiring && Interface.CallHook("OnHelicopterRetire", this) == null)
	{
		Invoke(DestroyMe, 240f);
		float x = TerrainMeta.Size.x;
		float y = 200f;
		Vector3 newPos = Vector3Ex.Range(-1f, 1f);
//---

Released under the MIT License.