Skip to content

OnCargoShipEgress

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnCargoShipEgress( CargoShip instance )
{
    Puts( "OnCargoShipEgress works!" );
    return null;
}

Location

  • CargoShip::StartEgress()
csharp
public void StartEgress()
{
	if (!isDoingHarborApproach && !egressing)
	{
		egressing = true;
		if (Interface.CallHook("OnCargoShipEgress", this) == null)
		{
			CancelInvoke(PlayHorn);
			radiation.SetActive(value: true);
			SetFlag(Flags.Reserved8, b: true);
			InvokeRepeating(UpdateRadiation, 10f, 1f);
//---

Released under the MIT License.