Skip to content

OnPortalUsed

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnPortalUsed( BasePlayer player, BasePortal instance )
{
    Puts( "OnPortalUsed works!" );
}

Location

  • BasePortal::UsePortal(BasePlayer player)
csharp
//---
			Effect.server.Run(this.transitionSoundEffect.resourcePath, this.targetPortal.relativeAnchor.transform.position, Vector3.up, null, false, null);
		}
		player.UpdateNetworkGroup();
		player.SetPlayerFlag(BasePlayer.PlayerFlags.ReceivingSnapshot, true);
		base.SendNetworkUpdateImmediate(false);
		Interface.CallHook("OnPortalUsed", player, this);
		return;
	}
	Debug.Log("No portal...");
}

Released under the MIT License.