Skip to content

OnCargoPlaneSignaled

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnCargoPlaneSignaled( BaseEntity baseEntity, SupplySignal instance )
{
    Puts( "OnCargoPlaneSignaled works!" );
}

Location

  • SupplySignal::Explode()
csharp
//---
	{
		Vector3 b = new Vector3(UnityEngine.Random.Range(-20f, 20f), 0f, UnityEngine.Random.Range(-20f, 20f));
		baseEntity.SendMessage("InitDropPosition", base.transform.position + b, SendMessageOptions.DontRequireReceiver);
		baseEntity.Spawn();
	}
	Interface.CallHook("OnCargoPlaneSignaled", baseEntity, this);
	base.Invoke(new Action(this.FinishUp), 210f);
	base.SetFlag(BaseEntity.Flags.On, true, false, true);
	base.SendNetworkUpdateImmediate(false);
}

Released under the MIT License.