Skip to content

OnPlayerStudyBlueprint

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnPlayerStudyBlueprint( BasePlayer player, Item item )
{
    Puts( "OnPlayerStudyBlueprint works!" );
    return null;
}

Location

  • ItemModStudyBlueprint::ServerCommand(Item item, string command, BasePlayer player)
csharp
//---
		if (!flag)
		{
			return;
		}
	}
	if (IsBlueprintUnlocked(item, player, out var blueprintTargetDef, out var blueprint) || Interface.CallHook("OnPlayerStudyBlueprint", player, item) != null)
	{
		return;
	}
	Item item2 = item;
	if (item.amount > 1)
//---

Released under the MIT License.