Skip to content

OnPhoneDial

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPhoneDial( PhoneController instance, PhoneController telephone, BasePlayer currentPlayer )
{
    Puts( "OnPhoneDial works!" );
}

Location

  • PhoneController::CallPhone(int number)
csharp
//---
	if (!(telephone != null))
	{
		this.OnDialFailed(Telephone.DialFailReason.WrongNumber);
		return;
	}
	if (Interface.CallHook("OnPhoneDial", this, telephone, this.currentPlayer) != null)
	{
		return;
	}
	if (telephone.serverState == Telephone.CallState.Idle && telephone.CanReceiveCall())
	{
//---

Released under the MIT License.