Skip to content

OnPhoneDialFail

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnPhoneDialFail( PhoneController instance, Telephone.DialFailReason reason, BasePlayer currentPlayer )
{
    Puts( "OnPhoneDialFail works!" );
    return null;
}

Location

  • PhoneController::OnDialFailed(Telephone.DialFailReason reason)
csharp
public void OnDialFailed(Telephone.DialFailReason reason)
{
	if (Interface.CallHook("OnPhoneDialFail", this, reason, currentPlayer) == null)
	{
		SetPhoneState(Telephone.CallState.Idle);
		base.baseEntity.ClientRPC(RpcTarget.NetworkGroup("ClientOnDialFailed"), (int)reason);
		activeCallTo = null;
		if (IsInvoking(TimeOutCall))
//---

Released under the MIT License.