Skip to content

OnItemUnlock

Usage

  • No return behavior

Example Autogenerated

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

Location

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

Released under the MIT License.