Skip to content

OnPhoneCallStart

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

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

Released under the MIT License.