Skip to content

CanTeleportDeepSea

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanTeleportDeepSea( BaseEntity entity, DeepSeaPortal Portal )
{
    Puts( "CanTeleportDeepSea works!" );
}

Location

  • TriggerDeepSeaPortal::CanEntityTeleport(BaseEntity entity)
csharp
private ValueTuple<bool, Translate.Phrase> CanEntityTeleport(BaseEntity entity)
{
	object returnvar = Interface.CallHook("CanTeleportDeepSea", entity, this.Portal);
	if (returnvar is ValueTuple<bool, Translate.Phrase>)
	{
		return (ValueTuple<bool, Translate.Phrase>)returnvar;
	}
	if (this.Portal.PortalMode == DeepSeaPortal.PortalModeEnum.Entrance)
//---

Released under the MIT License.