CanReceiveCall
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanReceiveCall( PhoneController instance )
{
Puts( "CanReceiveCall works!" );
}
Location
- PhoneController::CanReceiveCall()
csharp
private bool CanReceiveCall()
{
object returnvar = Interface.CallHook("CanReceiveCall", this);
if (returnvar is bool)
{
return (bool)returnvar;
}
return (!this.RequirePower || this.IsPowered()) && (!this.RequireParent || base.baseEntity.HasParent());
//---