Skip to content

OnItemLock

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnItemLock(  )
{
    Puts( "OnItemLock works!" );
}

Location

  • Item::LockUnlock(bool bNewState)
csharp
//---
{
	if (this.HasFlag(Item.Flag.IsLocked) == bNewState)
	{
		return;
	}
	if (bNewState && Interface.CallHook("OnItemLock", this) != null)
	{
		return;
	}
	this.SetFlag(Item.Flag.IsLocked, bNewState);
	this.MarkDirty();
//---

Released under the MIT License.