Skip to content

OnItemPainted ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnItemPainted( PaintedItemStorageEntity instance, Item item, BasePlayer player, byte[] array )
{
    Puts( "OnItemPainted works!" );
}

Location ​

  • PaintedItemStorageEntity::Server_UpdateImage(BaseEntity.RPCMessage msg)
csharp
//---
		{
			item.LoseCondition(0.25f);
		}
		lastEditedBy = msg.player.userID;
	}
	Interface.CallHook("OnItemPainted", this, item, msg.player, array);
	SendNetworkUpdate();
}

Released under the MIT License.