Skip to content

OnDeepSeaTeleport

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnDeepSeaTeleport( TriggerDeepSeaPortal instance, BaseEntity ent )
{
    Puts( "OnDeepSeaTeleport works!" );
    return null;
}

Location

  • TriggerDeepSeaPortal::OnEntityEnter(BaseEntity ent)
csharp
//---
			Pool.FreeUnmanaged(ref obj);
		}
	}
	else
	{
		if (!WillTeleport || Interface.CallHook("OnDeepSeaTeleport", this, ent) != null)
		{
			return;
		}
		if (Portal.PortalMode == DeepSeaPortal.PortalModeEnum.Entrance)
		{
//---

Released under the MIT License.