Skip to content

CanStackItem ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private void CanStackItem( Item instance, Item item )
{
    Puts( "CanStackItem works!" );
}

Location ​

  • Item::CanStack(Item item)
csharp
public bool CanStack(Item item)
{
	object returnvar = Interface.CallHook("CanStackItem", this, item);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (item == this)
//---

Released under the MIT License.