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
//---
if (isDoingHarborApproach || egressing)
{
return;
}
egressing = true;
if (Interface.CallHook("OnCargoShipEgress", this) == null)
{
CancelInvoke(PlayHorn);
radiation.SetActive(value: true);
using (FlagsUpdateScope flagsUpdateScope = StartSetFlags(FlagsUpdateMode.SendNetworkUpdate))
{
//---