Skip to content

OnPortalUse

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

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

Location

  • BasePortal::UsePortal(BasePlayer player)
csharp
public virtual void UsePortal(BasePlayer player)
{
	if (Interface.CallHook("OnPortalUse", player, this) != null)
	{
		return;
	}
	this.LinkPortal();
	if (this.targetPortal != null)
//---

Released under the MIT License.