CanResearchItem
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanResearchItem( BasePlayer player, Item targetItem )
{
Puts( "CanResearchItem works!" );
}
Location
- ResearchTable::DoResearch(BaseEntity/RPCMessage msg)
csharp
//---
Item targetItem = this.GetTargetItem();
if (targetItem == null)
{
return;
}
if (Interface.CallHook("CanResearchItem", player, targetItem) != null)
{
return;
}
if (targetItem.amount > 1)
{
//---