Skip to content

OnPhoneAnswer ​

Usage ​

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

Example Autogenerated ​

csharp
private void OnPhoneAnswer( PhoneController instance, PhoneController activeCallTo )
{
    Puts( "OnPhoneAnswer works!" );
}

Location ​

  • PhoneController::AnswerPhone(BaseEntity/RPCMessage msg)
csharp
//---
	if (this.activeCallTo == null)
	{
		return;
	}
	BasePlayer player = msg.player;
	if (Interface.CallHook("OnPhoneAnswer", this, this.activeCallTo) != null)
	{
		return;
	}
	this.UpdateServerPlayer(player);
	this.BeginCall();
//---

Released under the MIT License.