CanAffordApartmentMasterKey
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? CanAffordApartmentMasterKey( BasePlayer player, NPCApartmentSecurity instance )
{
Puts( "CanAffordApartmentMasterKey works!" );
return null;
}Location
- NPCApartmentSecurity::Conversation_CanAffordMasterKey(BasePlayer player)
csharp
public bool Conversation_CanAffordMasterKey(BasePlayer player)
{
object obj = Interface.CallHook("CanAffordApartmentMasterKey", player, this);
if (obj is bool)
{
return (bool)obj;
}
ItemDefinition definition = ItemManager.FindItemDefinition("scrap");
//---