CanTeleportDeepSea
Usage
- Return a ValueTuple<bool, Translate.Phrase> value to override default behavior
Example Autogenerated
csharp
private ValueTuple<bool, Translate.Phrase>? CanTeleportDeepSea( BaseEntity entity, DeepSeaPortal Portal )
{
Puts( "CanTeleportDeepSea works!" );
return null;
}Location
- TriggerDeepSeaPortal::CanEntityTeleport(BaseEntity entity)
csharp
private (bool, Translate.Phrase) CanEntityTeleport(BaseEntity entity)
{
object obj = Interface.CallHook("CanTeleportDeepSea", entity, Portal);
if (obj is ValueTuple<bool, Translate.Phrase>)
{
return ((bool, Translate.Phrase))obj;
}
if (Portal.PortalMode == DeepSeaPortal.PortalModeEnum.Entrance)
//---