Skip to content

OnPlayerStudyBlueprint

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

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

Released under the MIT License.