OnPortalUsed
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPortalUsed( BasePlayer player, BasePortal instance )
{
Puts( "OnPortalUsed works!" );
}
Location
- BasePortal::UsePortal(BasePlayer player)
csharp
//---
}
player.UpdateNetworkGroup();
player.SetPlayerFlag(BasePlayer.PlayerFlags.ReceivingSnapshot, true);
base.SendNetworkUpdateImmediate(false);
player.ClientRPC<bool>(RpcTarget.Player("StartLoading_Quick", player), true);
Interface.CallHook("OnPortalUsed", player, this);
return;
}
Debug.Log("No portal...");
}