Skip to content

OnPhoneCallStart

Usage

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

Example Autogenerated

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

Location

  • PhoneController::BeginCall()
csharp
public void BeginCall()
{
	if (Interface.CallHook("OnPhoneCallStart", this, this.activeCallTo, this.currentPlayer) != null)
	{
		return;
	}
	if (this.IsMobile && this.activeCallTo != null && !this.activeCallTo.RequirePower)
	{
//---

Released under the MIT License.